npm切换到yarn,加快容器构建

This commit is contained in:
Vinlic 2024-04-11 15:04:44 +08:00
parent 32884af017
commit a30fa1cbca

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . /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 FROM node:lts-alpine