diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..545d875 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3-alpine + +COPY requirements.txt /code/requirements.txt +RUN pip install -r /code/requirements.txt +RUN echo '*/5 * * * * python3 /code/main.py' | crontab - +COPY . /code + +WORKDIR /code + +CMD ["/usr/sbin/crond", "-f", "-d", "0"]