Dockerify

This commit is contained in:
cpp 2020-06-08 21:40:29 +02:00
parent 2c99214db5
commit eda546cf6d
4 changed files with 16 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM debian:buster
RUN apt install -y python3 python3-requests cron
ADD files/main.py /main.py
ADD files/crontab /etc/cron.d/assembly-cron
RUN chmod 0644 /etc/cron.d/assembly-cron
RUN crontab /etc/cron.d/assembly-cron
CMD ["cron", "-f"]

4
docker-compose.yml Normal file
View file

@ -0,0 +1,4 @@
version: '2.0'
services:
assemblybot:
build: .

1
files/crontab Normal file
View file

@ -0,0 +1 @@
0 18 * * 4 /usr/bin/python3 /main.py