docs/Dockerfile

18 lines
411 B
Docker
Raw Normal View History

2023-03-21 02:13:00 +00:00
# build the docs and load static files into nginx
2023-07-30 16:15:20 +00:00
FROM python:3.11.3-slim-bullseye AS builder
2023-03-21 02:13:00 +00:00
ENV PATH=/root/.local/bin:$PATH
2023-04-01 12:16:09 +00:00
RUN apt-get update -y && apt-get install -y libcairo2
2023-03-21 02:13:00 +00:00
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