From 119e31fba2fab3482e300edf68add8eb54906325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 26 Jun 2026 17:57:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20FastAPI=20entrypoint=20(#2?= =?UTF-8?q?360)?= 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 3c442803..edef2849 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 07995dfb..e4a70966 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"