Skip to content

Commit 954f419

Browse files
committed
Bump node to 22, skip puppeteer, prune devdeps
1 parent c950236 commit 954f419

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,27 @@ RUN git clone https://github.com/razorpay/razorpay-mcp-server.git . && \
77
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /out/razorpay-mcp-server ./cmd/razorpay-mcp-server
88

99
# Stage 2: Node Build & Native Dependencies
10-
FROM node:20-alpine AS proxy-builder
10+
FROM node:22-alpine AS proxy-builder
1111
WORKDIR /app
12+
13+
# Copy root config and package manifests
1214
COPY package*.json ./
1315
COPY packages/proxy/package*.json ./packages/proxy/
1416
COPY packages/dashboard/package*.json ./packages/dashboard/
17+
1518
# Compile better-sqlite3 native bindings in Alpine
1619
RUN apk add --no-cache python3 make g++
20+
ENV PUPPETEER_SKIP_DOWNLOAD=true
1721
RUN npm ci
1822
COPY . .
1923
RUN npm run build -w packages/proxy
2024
RUN npm run build -w packages/dashboard
21-
# Re-install prod dependencies to trim dev footprint
22-
RUN npm ci --omit=dev
25+
26+
# Prune dev dependencies (including puppeteer, typescript) so they aren't copied to the final image
27+
RUN npm prune --omit=dev
2328

2429
# Stage 3: Runtime
25-
FROM node:20-alpine
30+
FROM node:22-alpine
2631
WORKDIR /app
2732

2833
# Copy the upstream binary

0 commit comments

Comments
 (0)