hs3-baza-zasobow-dashboard/Dockerfile
Piotr Gaczkowski a5ec38f3a3
Some checks failed
MegaLinter / MegaLinter (pull_request) Has been cancelled
Update website / update (pull_request) Has been cancelled
feat: Add basic frontend
2026-04-16 14:22:50 +02:00

20 lines
423 B
Docker

# Build stage
FROM python:3.11 AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-install-project
COPY . .
RUN uv sync
# Runtime stage
FROM python:3.11-slim
WORKDIR /app
COPY --from=builder /app/ /app/
ENV PATH="/app/.venv/bin:$PATH"
CMD ["fastapi", "dev", "--host", "0.0.0.0", "--port", "31337", "labeler/adapter/fastapi_srv.py" ]