Browse Source

配置

master
zhang_li 8 months ago
parent
commit
930c3c0424
  1. 6
      Dockerfile
  2. 2
      nginx.conf

6
Dockerfile

@ -1,7 +1,7 @@
# 设置基础镜像
FROM win-nginx
WORKDIR /opt/eam-uniapp
WORKDIR /opt/eam-pda
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
# 将dist/build/h5/文件中的内容复制到 /opt/eam-uniapp 这个目录下面
COPY dist/build/h5/ /opt/eam-uniapp
# 将dist/build/h5/文件中的内容复制到 /opt/eam-pda 这个目录下面
COPY dist/build/h5/ /opt/eam-pda

2
nginx.conf

@ -46,7 +46,7 @@ http {
proxy_cache_valid 200 304 12h;
proxy_cache_key $host$uri$is_args$args;
try_files $uri $uri/ /index.html;
root /opt/eam-uniapp;
root /opt/eam-pda;
index index.html index.htm;
}
}

Loading…
Cancel
Save