fix: copy docs before uv sync in docker build
All checks were successful
ci / build-test-push (push) Successful in 2m30s

This commit is contained in:
Steve W
2026-04-11 19:58:59 +00:00
parent 6649186daa
commit c14cc296d7

View File

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