docs/Dockerfile

16 lines
356 B
Docker
Raw Normal View History

2023-03-21 02:13:00 +00:00
# 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
2023-03-22 07:58:38 +00:00
RUN mkdir /mkdocs
COPY mkdocs /mkdocs
WORKDIR mkdocs
2023-03-21 02:13:00 +00:00
RUN mkdocs build
FROM nginx as srv
2023-03-22 07:58:38 +00:00
COPY --from=builder /mkdocs/site /usr/share/nginx/html