diff --git a/Dockerfile b/Dockerfile index 7fd63dc..5fbae61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,10 @@ RUN chmod 777 /app/crontab RUN apt-get update && apt-get -y install cron # Copier le script d'entrée -COPY entrypoint.sh /app/entrypoint.sh -RUN chmod +x /app/entrypoint.sh +#COPY entrypoint.sh /app/entrypoint.sh +#RUN chmod +x /app/entrypoint.sh + +RUN crontab /app/crontab.txt # Définir le point d'entrée de l'image -ENTRYPOINT ["/app/entrypoint.sh"] +ENTRYPOINT ["cron"] diff --git a/crontab b/crontab index f721cd1..6da8f5e 100644 --- a/crontab +++ b/crontab @@ -1,3 +1,3 @@ -* * * * * root python3 /app/testFinal.py >> /app/cron.log 2>&1 -00 08 * * * root python3 /app/generateurModele.py >> /app/cron.log 2>&1 +* * * * * python3 /app/testFinal.py >> /app/cron.log 2>&1 +00 08 * * * python3 /app/generateurModele.py >> /app/cron.log 2>&1