Stop using entrypoints and remove entrypoint-based ci job

This commit is contained in:
Ana Custura 2022-12-06 12:24:11 +00:00 committed by irl
parent ebc9001aa1
commit bbcc451f65
2 changed files with 1 additions and 14 deletions

View file

@ -49,17 +49,6 @@ COPY . ${APP_BASE}/${APP}
RUN pip3 install -r requirements.txt
RUN pip3 install psycopg2-binary
# Set the entrypoint to the web app
ENTRYPOINT exec flask run
# Image for the cron service
FROM portal AS CRON
# Run as root
USER root
# Setup the crontab
RUN crontab -u ${APP} docker-crontab
# Entrypoint for the cron service
ENTRYPOINT [ "cron", "-f" ]
# Set the entrypoint to the web app