Dockerify
This commit is contained in:
parent
2c99214db5
commit
eda546cf6d
4 changed files with 16 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
4
docker-compose.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
version: '2.0'
|
||||||
|
services:
|
||||||
|
assemblybot:
|
||||||
|
build: .
|
1
files/crontab
Normal file
1
files/crontab
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0 18 * * 4 /usr/bin/python3 /main.py
|
Loading…
Reference in a new issue