Browse Source

feat:修改了NODE18模板

xuxiaopang 2 năm trước cách đây
mục cha
commit
06b5acf5f1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      web/src/main/resources/template/dockerfile/NODE_18

+ 3 - 1
web/src/main/resources/template/dockerfile/NODE_18

@@ -10,4 +10,6 @@ RUN npm run build
 FROM nginx:1.19-alpine
 COPY --from=builder /code/nginx.conf /etc/nginx/conf.d/nginx.conf
 COPY --from=builder /code/dist/ /var/www/html/dist/
-RUN chmod -R 777 /var/www/html/dist/
+RUN chmod -R 777 /var/www/html/dist/
+
+CMD ["npm","start"]