mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 19:15:13 +00:00
perf: change base image
This commit is contained in:
parent
80f929fdea
commit
83f7dda5e7
@ -16,5 +16,7 @@ WORKDIR /data
|
|||||||
|
|
||||||
COPY package.json yarn.lock ./
|
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 \
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user