Initial commit
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user