This commit is contained in:
2024-04-12 15:16:09 +02:00
parent a94a0b0fe8
commit 640cde1ba7

View File

@@ -5,7 +5,7 @@ WORKDIR /app
COPY . . COPY . .
COPY crons_jobs /etc/cron.d/django_crons_jobs COPY crons_jobs /etc/cron.d/django_crons_jobs
RUN apt-get update && apt-get install -y cron RUN apt-get update && apt-get install -y cron
RUN chmod 0644 /etc/cron.d/django_crons_jobs && crontab /etc/cron.d/django_crons_jobs && touch /var/log/cron.log && tail -f /var/log/cron.log RUN chmod 0644 /etc/cron.d/django_crons_jobs && crontab /etc/cron.d/django_crons_jobs && touch /var/log/cron.log
RUN apt update && apt install cron && pip install --no-cache-dir -r requirements.txt RUN apt update && apt install cron && pip install --no-cache-dir -r requirements.txt