From 543a9d0ad830facd389ac68a39098c0669b3c454 Mon Sep 17 00:00:00 2001 From: Enzo Date: Tue, 12 Dec 2023 08:43:48 +0100 Subject: [PATCH] try --- Dockerfile | 8 +++++--- crontab | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) 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