build: containerize docs

This commit is contained in:
Khue Doan
2026-06-05 13:06:34 +07:00
parent b7d8037fa8
commit af374350e1
2 changed files with 15 additions and 0 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.git
site

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM docker.io/library/python:3.13-slim AS build
WORKDIR /src
RUN pip install --no-cache-dir mkdocs-material
COPY . .
RUN mkdocs build
FROM docker.io/library/nginx:1.27-alpine
COPY --from=build /src/site /usr/share/nginx/html