npm切换到yarn降低镜像构建耗时

This commit is contained in:
Vinlic 2024-04-11 16:16:53 +08:00
parent 885e33ea7a
commit eb7d10a60f
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . /app
RUN npm i --registry http://registry.npmmirror.com && npm run build
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
FROM node:lts-alpine