feat: enhance build and setup

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

No files matched your search

+2 -2
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;
}
+2 -4
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