diff --git a/Dockerfile b/Dockerfile index a97ff96..211c418 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM python:3.10 COPY ./requirements.txt ./requirements.txt RUN pip install -r requirements.txt COPY ./app/ ./app -CMD python app/core_api.py; gunicorn --reload -b 0.0.0.0:8050 app.app:server +CMD python -m app.core_api; gunicorn --reload -b 0.0.0.0:8050 app.app:server diff --git a/app/core_api.py b/app/core_api.py index 3c4a729..ac244fa 100644 --- a/app/core_api.py +++ b/app/core_api.py @@ -108,7 +108,7 @@ def wait_for_ove() -> None: """Function to wait for the OVE Core API to be available after startup.""" - while requests.get(API_URL).status_code != 200: + while requests.get(f"{API_URL}/app/html").status_code != 200: time.sleep(5)