Skip to content

Commit 119e31f

Browse files
authored
🔧 Use FastAPI entrypoint (#2360)
1 parent 6bc7fa4 commit 119e31f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ RUN --mount=type=cache,target=/root/.cache/uv \
4242

4343
WORKDIR /app/backend/
4444

45-
CMD ["fastapi", "run", "--workers", "4", "app/main.py"]
45+
CMD ["fastapi", "run", "--workers", "4"]

backend/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ show_contexts = true
7878

7979
[tool.ty.terminal]
8080
error-on-warning = true
81+
82+
[tool.fastapi]
83+
entrypoint = "app.main:app"

0 commit comments

Comments
 (0)