Add: add base fastapi backend
This commit is contained in:
commit
4d0fe108ff
13 changed files with 940 additions and 0 deletions
20
backend/Dockerfile
Normal file
20
backend/Dockerfile
Normal 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 []
|
||||
Loading…
Add table
Add a link
Reference in a new issue