mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
build: containerize docs
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
.git
|
||||
site
|
||||
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user