Fix ARM64 Docker build by using npm ci with optional dependencies

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-17 15:06:09 +00:00
parent 79a365404b
commit 24f55dbb20

View File

@@ -11,9 +11,9 @@ COPY packages/spark-tools ./packages/spark-tools
# Copy spark wrapper package
COPY packages/spark ./packages/spark
# Install dependencies - npm ci doesn't fully support workspace protocol in all versions
# So we use npm install which resolves workspaces correctly
RUN npm install --legacy-peer-deps
# Install dependencies with npm ci for consistent, reproducible builds
# Include optional dependencies to ensure platform-specific binaries (like @rollup/rollup-linux-arm64-musl) are installed
RUN npm ci --include=optional
# Copy remaining application files
COPY . .