modif cron
This commit is contained in:
@@ -3,7 +3,12 @@ FROM python:3.9
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY crons_jobs /etc/cron.d/django_crons_jobs
|
||||
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 apt update && apt install cron && pip install --no-cache-dir -r requirements.txt
|
||||
RUN python manage.py makemigrations && python manage.py migrate
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user