diff --git a/Dockerfile b/Dockerfile index ccee422..842fb7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,13 @@ WORKDIR /app # Install all workspaces (also fetches puppeteer's Chromium + better-sqlite3 prebuilt # binary for linux-x64), then build the web UI and bundle the server. COPY . . -RUN npm install \ +# package-lock.json is generated on Windows dev machines; npm's optional-dependency +# resolution has a known bug (npm/cli#4828) where a lockfile from one platform doesn't +# pull in another platform's native binaries (here, @rollup/rollup-linux-x64-gnu) even +# though npm install runs fresh in this (Linux) container. Dropping the lockfile before +# install forces a same-platform resolve. +RUN rm -f package-lock.json \ + && npm install \ && npm run build --workspace @sims/hq-web \ && npm run build --workspace @sims/hq