From aa13913093c4530af7a8a01f9b2c46152a1f1163 Mon Sep 17 00:00:00 2001 From: Ben West Date: Sun, 1 Mar 2026 12:53:32 -0800 Subject: [PATCH] Dockerfile: Add --force to bypass platform check npm ci fails with EBADPLATFORM when lockfile contains darwin-only packages (fsevents), even with --omit=optional. The --force flag bypasses this check. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8f270454..0bae99e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ADD . /opt/app # TODO: We should be able to do `RUN npm install --only=production`. # For this to work, we need to copy only package.json and things needed for `npm`'s to succeed. # TODO: Do we need to re-add `npm audit fix`? Or should that be part of a development process/stage? -RUN npm ci --cache /tmp/empty-cache --omit=optional && \ +RUN npm ci --cache /tmp/empty-cache --omit=optional --force && \ npm run postinstall && \ npm run env && \ rm -rf /tmp/*