Sfoglia il codice sorgente

feat:修改了NODE18模板的config

xuxiaopang 2 anni fa
parent
commit
786ed02c21
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      web/src/main/resources/template/dockerfile/NODE_18

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

@@ -5,7 +5,7 @@ RUN npm config set registry https://registry.npmmirror.com/
 ADD package.json /code
 ADD package.json /code
 RUN npm install
 RUN npm install
 ADD . /code
 ADD . /code
-RUN vite build
+RUN npm run build
 
 
 FROM nginx:1.19-alpine
 FROM nginx:1.19-alpine
 COPY --from=builder /code/nginx.conf /etc/nginx/conf.d/nginx.conf
 COPY --from=builder /code/nginx.conf /etc/nginx/conf.d/nginx.conf