Add: add base fastapi backend

This commit is contained in:
Kirill Samoylenkov 2025-11-19 23:04:02 +05:00
commit 4d0fe108ff
13 changed files with 940 additions and 0 deletions

20
backend/Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM ghcr.io/astral-sh/uv:0.9.8-trixie-slim
# Settings for UV
ENV UV_COMPILE_BYTECODE=1
ENV UV_TOOL_BIN_DIR=/usr/local/bin
# Copy base project files
COPY . /backend
# Set working dir
WORKDIR /backend
# Run UV commands
RUN uv sync --locked --no-install-project --no-dev
# Add uv installed tools to path
ENV PATH="/backend/.venv/bin:$PATH"
# Clear entrypoint
ENTRYPOINT []