From e17dfef2aa09ba13d4cd5399a74c0da32d817b82 Mon Sep 17 00:00:00 2001 From: Gabriele Tramonte Date: Tue, 30 Jul 2024 12:38:00 +0200 Subject: [PATCH] modifying entrypoint --- api/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index e3b399d..648554d 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -14,8 +14,7 @@ COPY ./healtcheck.* /opt/ 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"] -ENTRYPOINT service cron start && uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 80 \ No newline at end of file +ENTRYPOINT service cron start && ./../wait-for-it.sh $(BROKER_SERVICE_HOST):5672 -- uvicorn main:app --host 0.0.0.0 --port '80' \ No newline at end of file