first commit

This commit is contained in:
Philipp Rauch 2020-06-30 21:51:10 +02:00
commit b7934e09cc
6 changed files with 193 additions and 0 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM python:3-alpine
WORKDIR /app
COPY requirements.txt ./
RUN apk update && apk add mkvtoolnix && apk add --no-cache tzdata
RUN pip install --no-cache-dir -r requirements.txt
ENV TZ Europe/Berlin
COPY main.py ./
RUN crontab -l | { cat; echo "15 03 * * * cd /app && python -u /app/main.py"; } | crontab -
VOLUME ["/download"]
CMD ["/usr/sbin/crond", "-f", "-l", "0"]