Create Dockerfile

This commit is contained in:
Kasper Plougmann 2025-07-08 12:25:09 +02:00 committed by GitHub
parent 3f24df018c
commit 2cf64d120a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

23
Dockerfile Normal file
View file

@ -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"]