Skip to content

Commit 1f49142

Browse files
committed
Use npm cache
Signed-off-by: David Gageot <[email protected]>
1 parent 3457ba7 commit 1f49142

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/extension/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
FROM --platform=$BUILDPLATFORM node:23-alpine3.21@sha256:86703151a18fcd06258e013073508c4afea8e19cd7ed451554221dd00aea83fc AS client-builder
44
WORKDIR /ui
55
COPY ui/package.json ui/package-lock.json ./
6-
RUN --mount=type=cache,target=/usr/src/app/.npm \
7-
npm set cache /usr/src/app/.npm && \
8-
npm ci
6+
RUN --mount=type=cache,target=/root/.npm npm ci
97
COPY ui/. .
10-
RUN npm run build
8+
RUN --mount=type=cache,target=/root/.npm npm run build
119

1210
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
1311
ARG TARGETARCH

0 commit comments

Comments
 (0)