瀏覽代碼

Merge branch 'dev' into master

# Conflicts:
#	Dockerfile
ChengYuXuan 5 年之前
父節點
當前提交
3ceaf8061a
共有 2 個文件被更改,包括 1 次插入12 次删除
  1. 1 1
      Dockerfile
  2. 0 11
      nginx.conf

+ 1 - 1
Dockerfile

@@ -2,10 +2,10 @@ FROM node:10-alpine as builder
 WORKDIR /code
 RUN yarn config set registry https://registry.npm.taobao.org/
 ADD package.json /code
+ADD yarn.lock /code
 RUN yarn install
 ADD . /code
 RUN yarn build
 
 FROM nginx:1.19-alpine
-COPY nginx.conf /etc/nginx/conf.d/seecoder-paas-ui.conf
 COPY --from=builder /code/dist/ /var/www/html/dist/

+ 0 - 11
nginx.conf

@@ -1,11 +0,0 @@
-server {
-  listen 80 default_server;
-  listen [::]:80 default_server;
-  root /var/www/html/dist;
-  location ~ / {
-    if ($request_uri ~* (api)) {
-        proxy_pass http://http://47.111.95.164:8080;
-    }
-    try_files $uri $uri/ /index.html;
-  }
-}