替换失败的镜像源

This commit is contained in:
sijinhui 2024-07-02 00:37:24 +08:00
parent 70969844d7
commit 4c1222257b

View File

@ -22,8 +22,8 @@ WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn config set registry 'https://registry.npmmirror.com/'
RUN yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
RUN yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
RUN yarn config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
RUN yarn config set sharp_libvips_binary_host "https://cdn.npmmirror.com/binaries/sharp-libvips"
#RUN # 清理遗留的缓存
#RUN yarn cache clean
RUN yarn install