Sfoglia il codice sorgente

feat:修改了NODE18模板的config

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

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

@@ -1,11 +1,11 @@
 # 前端打包dockerfile
 FROM node:18-alpine as builder
 WORKDIR /code
-RUN yarn config set registry https://registry.npmmirror.com/
+RUN npm config set registry https://registry.npmmirror.com/
 ADD package.json /code
-RUN yarn install
+RUN npm install
 ADD . /code
-RUN yarn build
+RUN vite build
 
 FROM nginx:1.19-alpine
 COPY --from=builder /code/nginx.conf /etc/nginx/conf.d/nginx.conf