瀏覽代碼

Merge remote-tracking branch 'origin/develop' into develop

John-Hong 2 年之前
父節點
當前提交
d23d9ffc89
共有 3 個文件被更改,包括 265 次插入236 次删除
  1. 8 0
      Dockerfile
  2. 20 0
      nginx_parking.conf
  3. 237 236
      yarn.lock

+ 8 - 0
Dockerfile

@@ -0,0 +1,8 @@
+FROM kerrysmart-registry-vpc.cn-shanghai.cr.aliyuncs.com/base/nginx:parking
+COPY prod-index.html /prod-index.html
+COPY dist/* /usr/share/nginx/html/
+COPY nginx_parking.conf /etc/nginx/conf.d/
+RUN rm -rf /usr/share/nginx/html/static && \
+    rm -rf /usr/share/nginx/html/manual && \
+    rm -rf /etc/nginx/conf.d/default.conf
+ 

+ 20 - 0
nginx_parking.conf

@@ -0,0 +1,20 @@
+server {
+    listen       80;
+    server_name  _;
+
+    location / {
+        root   /usr/share/nginx/html;
+        index  index.html index.htm;
+	try_files $uri $uri/ router;
+    }
+    location router {
+        rewrite ^.*$ /index.html last;
+    }
+
+
+    error_page   500 502 503 504  /50x.html;
+    location = /50x.html {
+        root   /usr/share/nginx/html;
+    }
+
+}

文件差異過大導致無法顯示
+ 237 - 236
yarn.lock


部分文件因文件數量過多而無法顯示