chd 1 year ago
parent
commit
67bd3156f3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -5,7 +5,8 @@ ENV NGINX_PORT=8088
 EXPOSE ${NGINX_PORT}
 COPY dist/  /usr/share/nginx/html/
 COPY nginx.conf /etc/nginx/nginx.conf
-RUN npm install
+RUN npm install  --force
+RUN cd dist/
 RUN rm -rf index.html
 
 ENTRYPOINT ["node","server.js"]