Files
work-queue-api/Dockerfile
Steve W c14cc296d7
All checks were successful
ci / build-test-push (push) Successful in 2m30s
fix: copy docs before uv sync in docker build
2026-04-11 19:58:59 +00:00

13 lines
444 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl wget ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.8.17 /uv /uvx /bin/
COPY pyproject.toml uv.lock ./
COPY docs ./docs
COPY mkdocs.yml ./mkdocs.yml
RUN uv sync --frozen --no-dev
COPY app ./app
EXPOSE 8080
ENV PORT=8080
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]