From 2cf64d120aab0c9b2455727087b9e88ed10477ea Mon Sep 17 00:00:00 2001 From: Kasper Plougmann Date: Tue, 8 Jul 2025 12:25:09 +0200 Subject: [PATCH] Create Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a530baa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM alpine:latest + +# Install prerequisites +RUN apk update && \ + apk add --no-cache transmission-daemon curl wget python3 py3-pip py3-requests py3-beautifulsoup4 + +# Add fetch script +COPY fetch_torrents.py /usr/local/bin/fetch_torrents.py +RUN chmod +x /usr/local/bin/fetch_torrents.py + +# Add entrypoint script +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Expose Transmission Web UI and peer ports +EXPOSE 9091 51413 + +# Create directories +RUN mkdir -p /config /downloads /watch /logs + +VOLUME ["/config", "/downloads", "/watch", "/logs"] + +ENTRYPOINT ["/entrypoint.sh"]