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

This commit is contained in:
Vinlic
2024-04-11 16:36:09 +08:00
parent c5e81b5d1b
commit 93b21e3e2e

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