o
continuous-integration/drone/push Build is failing Details

master
remrem 1 year ago
parent aa904eddf0
commit 8da58ed95b

@ -1,5 +1,4 @@
FROM python:3.10 FROM python:3.10
EXPOSE 80
WORKDIR /app WORKDIR /app
COPY . . COPY . .
# Cron # Cron
@ -9,4 +8,4 @@ RUN crontab /app/crontab
RUN crontab -l RUN crontab -l
# Python # Python
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ENTRYPOINT ["cron","-f"] ENTRYPOINT ["./entrypoint.sh"]

@ -1,14 +1,6 @@
#!/bin/bash #!/bin/bash
# Charger le fichier cron echo "[INFO] STARTING AI MODEL TRAINING SERVER"
crontab /app/crontab echo "[INFO] LAUNCH CRON IN BACKGROUND"
service cron start
# Démarrer le service cron en arrière-plan service cron status
#service cron start
pip install --upgrade pip
pip install scikit-learn
echo "Start"
cron && tail -f /app/cron.log
echo "End"

Loading…
Cancel
Save