增加前端打包处理

This commit is contained in:
wangchuan
2026-01-14 19:18:03 +08:00
parent f305bd9500
commit bee295738f
4 changed files with 26 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
FROM nginx:1.29.4-alpine
COPY default.conf /etc/nginx/conf.d/default.conf

View File

@@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/local/app;
try_files $uri /index.html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}