docs/Dockerfile
2023-03-22 14:58:38 +07:00

16 lines
356 B
Docker

# build the docs and load static files into nginx
FROM python:3.10.9-slim-bullseye AS builder
ENV PATH=/root/.local/bin:$PATH
COPY requirements.txt /requirements.txt
RUN pip install --user -r requirements.txt
RUN mkdir /mkdocs
COPY mkdocs /mkdocs
WORKDIR mkdocs
RUN mkdocs build
FROM nginx as srv
COPY --from=builder /mkdocs/site /usr/share/nginx/html