mirror of
https://github.com/tubearchivist/docs.git
synced 2024-12-28 20:50:13 +00:00
18 lines
411 B
Docker
18 lines
411 B
Docker
# build the docs and load static files into nginx
|
|
|
|
FROM python:3.11.3-slim-bullseye AS builder
|
|
ENV PATH=/root/.local/bin:$PATH
|
|
|
|
RUN apt-get update -y && apt-get install -y libcairo2
|
|
|
|
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
|