fix: add --force flag to npm install in docker-compose files

Allow npm to install platform-specific devDependencies (like dmg-license
which is macOS-only) by skipping platform checks in Linux Docker containers.
This matches the behavior already used in CI workflows.

Fixes Docker container startup failure:
- docker-compose.dev.yml (full stack development)
- docker-compose.dev-server.yml (server-only with local Electron)

The --force flag allows npm to proceed with installation even when some
optional/platform-specific dependencies can't be installed on the current
platform.
This commit is contained in:
DhanushSantosh
2026-01-17 15:00:48 +05:30
parent a0471098fa
commit 545bf2045d
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ services:
# Run the rest as automaker user
exec gosu automaker sh -c "
echo 'Installing dependencies...' &&
npm install &&
npm install --force &&
echo 'Building shared packages...' &&
npm run build:packages &&
echo 'Starting server in development mode...' &&