version: '2'
services:
monitorrent:
image: vespersio/monitorrent:latest
container_name: monitorrent
hostname: monitorrent
restart: always
environment:
- MONITORRENT_DB_PATH=/monitorrent/monitorrent.db
volumes:
- ./monitorrent.db:/monitorrent/monitorrent.db
ports:
- 6687:6687
FROM python:alpine
RUN apk add --no-cache build-base curl wget ca-certificates && \
curl -s https://api.github.com/repos/werwolfby/monitorrent/releases/latest | grep "browser_download_url.*zip" | cut -d : -f 2,3 | tr -d \" | wget -qi - && \
mkdir monitorrent && \
unzip monitorrent-*.zip -d monitorrent && \
pip install --no-cache-dir -r /monitorrent/requirements.txt && \
apk del build-base curl wget && \
pip install --no-cache-dir PySocks && \
rm -f /monitorrent-*.zip
WORKDIR /monitorrent
EXPOSE 6687
CMD ["python", "server.py"]
Content type
Image
Digest
Size
46.8 MB
Last updated
over 6 years ago
docker pull vespersio/monitorrent