From 7d37a8482a6977284095f71b31a6e9a9c84eba7a Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 23 Jul 2024 16:41:48 +0800 Subject: [PATCH] perf: change base image --- Dockerfile-base | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-base b/Dockerfile-base index f6eccfdb17..65c9d1f820 100644 --- a/Dockerfile-base +++ b/Dockerfile-base @@ -16,5 +16,7 @@ WORKDIR /data COPY package.json yarn.lock ./ +ARG NPM_MIRROR="https://registry.npmjs.org" RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=yarn-cache \ - yarn install + sed -i "s|https://registry.npmmirror.com|${NPM_MIRROR}|g" /data/package.json \ + && yarn install