forked from mj/devopsscripts
增加前端打包处理
This commit is contained in:
2
base/fileserver/Dockerfile
Normal file
2
base/fileserver/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM nginx:1.29.4-alpine
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
17
base/fileserver/default.conf
Normal file
17
base/fileserver/default.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user