Files
mttu-docs/Dockerfile
passthem dbaacaa582
Some checks failed
continuous-integration/drone/push Build is failing
添加部署相关
2025-11-08 05:42:10 +08:00

19 lines
343 B
Docker

FROM astral/uv:python3.12-bookworm-slim AS builder
RUN apt-get update && \
apt-get install -y git --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml .
COPY uv.lock .
RUN uv sync --locked
COPY . .
RUN uv run mkdocs build
FROM nginx:alpine
COPY --from=builder /app/site /usr/share/nginx/html