feat: enhance docker run env
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -3,8 +3,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
|
||||
|
||||
Reference in New Issue
Block a user