Browse Source

docker文件修改

yingp 7 years ago
parent
commit
50f3842de9
2 changed files with 4 additions and 1 deletions
  1. 1 1
      frontend/saas-portal-web/Dockerfile
  2. 3 0
      frontend/saas-portal-web/README.md

+ 1 - 1
frontend/saas-portal-web/Dockerfile

@@ -2,4 +2,4 @@ FROM hub.c.163.com/library/nginx
 MAINTAINER USOFTCHINA <yingp@usoftchina.com>
 RUN rm /etc/nginx/conf.d/default.conf
 ADD runtime/nginx/default.conf /etc/nginx/conf.d/
-COPY src/ /usr/share/nginx/html/
+COPY dist/ /usr/share/nginx/html/

+ 3 - 0
frontend/saas-portal-web/README.md

@@ -12,4 +12,7 @@ npm run dev
 
 # Build for production
 npm run build
+
+# Build for docker image
+docker build -t saas-portal-web:1.0.0 .
 ```