From efb32ae2cf69e95dd69aeaa37af09a7378552949 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Mon, 3 Feb 2025 16:23:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Third=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d6731d4..4199f76 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,8 +16,5 @@ COPY . . # Expose API port EXPOSE 80 -# Runs the stub script -CMD ["python3", "app/stub.py"] - -# Launches the uvicorn server (command from offical FastAPI documentation) -ENTRYPOINT ["fastapi", "run", "app/main.py", "--port", "80"] \ No newline at end of file +# Runs the stub script & launches the uvicorn server (command from offical FastAPI documentation) +CMD ["python3", "app/stub.py", "&&", "fastapi", "run", "app/main.py", "--port", "80"] \ No newline at end of file