We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d1a96 commit 4783ee4Copy full SHA for 4783ee4
Dockerfile
@@ -2,15 +2,16 @@
2
FROM node:22-alpine AS builder
3
4
# Install dependencies
5
-RUN apk add --no-cache libc6-compat
+RUN apk add --no-cache libc6-compat python3 make g++
6
7
WORKDIR /app
8
9
# Copy package files
10
COPY package.json package-lock.json* ./
11
12
-# Install dependencies
13
-RUN npm install
+# Install dependencies with optional dependencies
+# The --include=optional flag ensures rollup native binaries are installed
14
+RUN npm install --include=optional || (rm -f package-lock.json && npm install --include=optional)
15
16
# Copy source code
17
COPY . .
0 commit comments