Initial commit

This commit is contained in:
2026-04-24 08:02:13 +02:00
commit 867c06295c
76 changed files with 10573 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.14-slim AS base
WORKDIR /app
FROM base AS builder
# Copy pyproject.toml first to leverage Docker cache
COPY pyproject.toml .
# We can use pip to install the project in editable mode or just dependencies
RUN pip install --no-cache-dir .
FROM base
# Copy installed packages from builder
COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
COPY app/ ./app/
RUN mkdir -p /app/data
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]