mirror of
https://github.com/imgfloat/docs.git
synced 2026-02-04 20:09:25 +00:00
17 lines
375 B
Docker
17 lines
375 B
Docker
FROM python:3.12-slim AS builder
|
|
|
|
WORKDIR /docs
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libcairo2 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY pyproject.toml ./
|
|
RUN pip install .
|
|
COPY mkdocs.yml .
|
|
COPY docs/ docs/
|
|
RUN mkdocs build --clean
|
|
|
|
FROM nginx:alpine
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=builder /docs/site /usr/share/nginx/html
|