Add docker support

This commit is contained in:
serega404 committed 2023-01-12 12:06:24 +03:00
1 parent bc0b2afb38
commit 5b808df1c2
3 files changed
+34 -4

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
FROM python:3.11.1-alpine3.17
LABEL Maintainer="serega404"
WORKDIR /app
COPY main.py main.py
COPY ./requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY crontab /etc/cron.d/crontab
RUN chmod 0644 /etc/cron.d/crontab
RUN /usr/bin/crontab /etc/cron.d/crontab
# run crond as main process of container
CMD ["/usr/sbin/crond", "-f"]