mirror of
https://github.com/tubearchivist/docs.git
synced 2024-11-16 17:00:16 +00:00
18 lines
459 B
Docker
18 lines
459 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
|
||
|
|
||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
git
|
||
|
|
||
|
COPY requirements.txt /requirements.txt
|
||
|
RUN pip install --user -r requirements.txt
|
||
|
|
||
|
RUN git clone https://github.com/tubearchivist/docs.git
|
||
|
WORKDIR docs/mkdocs
|
||
|
RUN mkdocs build
|
||
|
|
||
|
FROM nginx as srv
|
||
|
COPY --from=builder docs/mkdocs/site /usr/share/nginx/html
|