Restore public IP reporting with a shell-free native helper
Build and Push Docker Image / build (push) Successful in 52s

This commit is contained in:
Ketan Patel committed 2026-10-04 19:15:40 -04:00
1 parent b43f776d54
commit 18c861f52c
4 files changed
+118 -7

No files matched your search

+5 -2
View File
@@ -1,12 +1,15 @@
# Keep Alpine's musl ABI and rTorrent version; export only runtime dependencies.
FROM alpine:3.24 AS runtime
RUN apk add --no-cache rtorrent ca-certificates tzdata \
build-base lddtreepax python3
build-base curl-dev lddtreepax python3
COPY install/rtorrent-entrypoint.c /build/rtorrent-entrypoint.c
RUN cc -Os -Wall -Wextra -Werror -o /usr/local/bin/rtorrent-entrypoint /build/rtorrent-entrypoint.c \
&& strip /usr/local/bin/rtorrent-entrypoint
COPY install/rtorrent-public-ip.c /build/rtorrent-public-ip.c
RUN cc -Os -Wall -Wextra -Werror -o /usr/local/bin/rtorrent-public-ip /build/rtorrent-public-ip.c -lcurl \
&& strip /usr/local/bin/rtorrent-public-ip
COPY build/runtime-root.py /build/runtime-root.py
RUN python3 /build/runtime-root.py /runtime /usr/bin/rtorrent /usr/local/bin/rtorrent-entrypoint
RUN python3 /build/runtime-root.py /runtime /usr/bin/rtorrent /usr/local/bin/rtorrent-entrypoint /usr/local/bin/rtorrent-public-ip
COPY tests/rtorrent-smoke.c /build/rtorrent-smoke.c
RUN cc -static -Os -Wall -Wextra -Werror -o /build/rtorrent-smoke /build/rtorrent-smoke.c