mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
@@ -81,7 +81,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...' &&
|
||||
|
||||
@@ -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...' &&
|
||||
|
||||
Reference in New Issue
Block a user