mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 21:54:56 +00:00
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:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user