mirror of
https://github.com/Laborratte5/linux-iso-seeder.git
synced 2025-12-30 17:08:17 +01:00
Create Dockerfile
This commit is contained in:
parent
3f24df018c
commit
2cf64d120a
1 changed files with 23 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue