From 45a1648dcf7c7fe8cb703dae480c3a305d94fcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 26 Jun 2026 17:53:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20FastAPI=20entrypoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 2 +- backend/pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 3c442803ff..edef2849f4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -42,4 +42,4 @@ RUN --mount=type=cache,target=/root/.cache/uv \ WORKDIR /app/backend/ -CMD ["fastapi", "run", "--workers", "4", "app/main.py"] +CMD ["fastapi", "run", "--workers", "4"] diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 2c981e380b..9096a5112a 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -78,3 +78,6 @@ show_contexts = true [tool.ty.terminal] error-on-warning = true + +[tool.fastapi] +entrypoint = "app.main:app"