Skip to content

Commit

Permalink
npm切换到yarn降低镜像构建耗时
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Apr 11, 2024
1 parent 885e33e commit eb7d10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eb7d10a

Please sign in to comment.