Skip to content

Commit 46d1354

Browse files
committed
Skips optional dependencies in Docker builds
Reduces cross-platform install complications by omitting optional modules. Falls back to npm install with omitted optional dependencies if npm ci fails.
1 parent 1d60bea commit 46d1354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /app
55
# Copy package files first for better Docker layer caching
66
COPY package.json package-lock.json ./
77

8-
# Install dependencies (including dev dependencies needed for build)
9-
RUN npm ci
8+
# Install dependencies, skipping platform-specific optional dependencies
9+
RUN npm ci --omit=optional || npm install --omit=optional
1010

1111
# Copy source code
1212
COPY . .

0 commit comments

Comments
 (0)