- .gitea/workflows/deploy.yaml: Actions pipeline - Dockerfile: nginx:alpine serving site/ - nginx.conf: SPA routing + gzip + cache - .dockerignore: exclude source files - .gitignore: exclude site/ (built in CI)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# 只把 MkDocs 构建产物(site/)放进 Nginx
|
||||
COPY site/ /usr/share/nginx/html/
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user