Skip to content

Commit e644cd5

Browse files
committed
perf: add BuildKit cache mount to npm ci
1 parent bc21c2f commit e644cd5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ WORKDIR /app
3636
RUN apk add --no-cache git
3737

3838
COPY package.json package-lock.json ./
39-
RUN npm ci --force
39+
RUN --mount=type=cache,target=/root/.npm \
40+
npm ci --force --no-audit --no-fund
4041

4142
COPY . .
4243
ENV APP_BUILD_HASH=${BUILD_HASH}

0 commit comments

Comments
 (0)