Create a MkDocs template from private repository

This commit is contained in:
2025-07-15 14:21:11 -04:00
commit c4a655dcee
9 changed files with 75 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3 AS builder
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN python -m venv ./python && \
. ./python/bin/activate && \
pip install --upgrade pip && \
pip install --use-pep517 --no-cache-dir -r requirements.txt
COPY . .
RUN . ./python/bin/activate && \
mkdocs build --clean --strict
FROM nginx:stable AS runtime
COPY --from=builder /usr/src/app/site /usr/share/nginx/html