Skip to content

Commit

Permalink
launching service cron at API start
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jul 30, 2024
1 parent 626ecd5 commit a55c25a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ RUN chmod +x /opt/healtcheck.sh
RUN crontab -u root /opt/healtcheck.cron
RUN service cron start

CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
#CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]

ENTRYPOINT uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 80 && service cron start

0 comments on commit a55c25a

Please sign in to comment.