1
0
mirror of https://github.com/serega404/VodokanalBot.git synced 2025-08-28 07:54:40 +03:00

Add Docker support

This commit is contained in:
2023-03-25 14:08:16 +03:00
parent 2a968f3528
commit 5388901294
4 changed files with 27 additions and 3 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.11.2-alpine3.17
LABEL Maintainer="serega404"
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# Setting up crontab
COPY crontab /tmp/crontab
RUN cat /tmp/crontab > /etc/crontabs/root
COPY main.py main.py
# run crond as main process of container
CMD ["crond", "-f", "-l", "2"]