From 92230ba67900c3bcd140740000460c974af44a5d Mon Sep 17 00:00:00 2001 From: jspablo Date: Wed, 12 Nov 2025 23:39:14 +1000 Subject: [PATCH] Fix CMD path in FastAPI Dockerfile (#16701) ## Summary Fix suggestion for uv when used with FastAPI and Docker. ## Test Plan The Dockerfile sets `/app` as workdir, later the CMD command points again to `app/main.py` instead of only `main.py`, causing the following error: ``` Path does not exist app/main.py ``` --- docs/guides/integration/fastapi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/integration/fastapi.md b/docs/guides/integration/fastapi.md index eeebba532..868553684 100644 --- a/docs/guides/integration/fastapi.md +++ b/docs/guides/integration/fastapi.md @@ -113,7 +113,7 @@ WORKDIR /app RUN uv sync --frozen --no-cache # Run the application. -CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80", "--host", "0.0.0.0"] +CMD ["/app/.venv/bin/fastapi", "run", "main.py", "--port", "80", "--host", "0.0.0.0"] ``` Build the Docker image with: