2
0

feat: enhance build and setup

This commit is contained in:
zhangsz
2024-12-30 10:12:54 +08:00
parent c43c799ae0
commit 25f17f91bb
22 changed files with 372 additions and 201 deletions

View File

@@ -15,7 +15,7 @@ http {
server_name localhost;
location /sys {
root /home/wfc/portal;
root /opt/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
@@ -29,7 +29,7 @@ http {
}
location /u {
root /home/wfc/portal;
root /opt/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}

View File

@@ -1,10 +1,8 @@
# 基础镜像
FROM nginx
# author
MAINTAINER wfc
# 工作目录
WORKDIR /home/wfc/portal
WORKDIR /opt/wfc/portal
# 复制conf文件到路径
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
# 复制html文件到路径
COPY ./html /home/wfc/portal
COPY ./html /opt/wfc/portal