Ajuste Dockerfile
This commit is contained in:
parent
51c05a63ce
commit
b4f6a73131
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
|
||||
# Criar arquivo de cron que executa o script a cada 2 minutos
|
||||
# IMPORTANTE: usar python3 (não python)
|
||||
RUN echo "*/2 * * * * /usr/local/bin/python3 /app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/cronjob
|
||||
RUN echo "*/1 * * * * /usr/local/bin/python3 /app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/cronjob
|
||||
|
||||
# Dar permissão para o cron job
|
||||
RUN chmod 0644 /etc/cron.d/cronjob
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue