perf: change base image

This commit is contained in:
ibuler 2024-07-23 16:41:48 +08:00 committed by 老广
parent 80f929fdea
commit 83f7dda5e7

View File

@ -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" yarn.lock \
&& yarn install