npm切换到yarn降低镜像构建耗时
This commit is contained in:
parent
885e33ea7a
commit
eb7d10a60f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue