From a55c25afa8e7ca095483a34a67177e3c8890b941 Mon Sep 17 00:00:00 2001 From: Gabriele Tramonte Date: Tue, 30 Jul 2024 11:59:06 +0200 Subject: [PATCH] launching service cron at API start --- api/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 310e7cc..cf1ccc2 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -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 \ No newline at end of file