From 4b822855a7903e3da135de71c1c3626e1d5be24e Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Thu, 12 Jan 2023 13:05:38 +0300 Subject: [PATCH] Optimize Dokerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index de21c77..30270ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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