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

This commit is contained in:
Vinlic 2024-04-11 13:54:16 +08:00
parent d4f6fee14d
commit 674647e108

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