first commit
This commit is contained in:
commit
b7934e09cc
6 changed files with 193 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue