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
EXPOSE 80
WORKDIR /app
COPY . .
# Cron
@ -9,4 +8,4 @@ RUN crontab /app/crontab
RUN crontab -l
# Python
RUN pip install -r requirements.txt
ENTRYPOINT ["cron","-f"]
ENTRYPOINT ["./entrypoint.sh"]

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

Loading…
Cancel
Save