Skip to content

Commit

Permalink
perf: change base image
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Jul 23, 2024
1 parent 80f929f commit 7d37a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7d37a84

Please sign in to comment.