diff --git a/Dockerfile b/Dockerfile index b01dde0..063a445 100644 --- a/Dockerfile +++ b/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 diff --git a/nginx.conf b/nginx.conf index 4c242aa..736b346 100644 --- a/nginx.conf +++ b/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; } }