Skip to content

Commit 4083123

Browse files
committed
fix: switch node build to slim for sharp dep
1 parent 460a9c2 commit 4083123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM node:22-alpine AS builder
1+
FROM node:22-slim AS builder
22

33
RUN corepack enable
44

55
WORKDIR /app
66

77
COPY package.json pnpm-lock.yaml ./
88
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
9-
pnpm install --frozen-lockfile --ignore-scripts
9+
pnpm install --frozen-lockfile
1010

1111
COPY . .
1212
RUN pnpm run build && \
13-
pnpm prune --prod --ignore-scripts
13+
pnpm prune --prod
1414

1515
FROM gcr.io/distroless/nodejs22-debian12
1616

0 commit comments

Comments
 (0)