Optimize Dokerfile

This commit is contained in:
serega404 committed 2023-01-12 13:05:38 +03:00
1 parent f4ce9083ae
commit 4b822855a7
1 file changed
+2 -1
+2 -1
View File
@@ -4,13 +4,14 @@ 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
COPY main.py main.py
RUN /usr/bin/crontab /etc/cron.d/crontab
# run crond as main process of container