Explorar el Código

feat:修改了NODE18模板

xuxiaopang hace 2 años
padre
commit
06b5acf5f1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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"]