Skip to content

fix: install all npm dependencies for frontend Docker build#1

Merged
ChildWerapol merged 1 commit intomainfrom
claude/fix-github-action-error-0134tbH9xeE3hqvzJfKSh1JQ
Nov 14, 2025
Merged

fix: install all npm dependencies for frontend Docker build#1
ChildWerapol merged 1 commit intomainfrom
claude/fix-github-action-error-0134tbH9xeE3hqvzJfKSh1JQ

Conversation

@ChildWerapol
Copy link
Owner

The frontend Dockerfile was using 'npm ci --only=production' which excluded devDependencies. However, the build script requires 'vite' and 'typescript' which are listed as devDependencies.

This caused the GitHub Actions build to fail with exit code 127 (command not found) when running 'npm run build'.

Changed to 'npm ci' to install all dependencies during the build stage. The final nginx image remains lean due to the multi-stage build.

Fixes GitHub Actions error in workflow run #19333505156

The frontend Dockerfile was using 'npm ci --only=production' which
excluded devDependencies. However, the build script requires 'vite'
and 'typescript' which are listed as devDependencies.

This caused the GitHub Actions build to fail with exit code 127
(command not found) when running 'npm run build'.

Changed to 'npm ci' to install all dependencies during the build stage.
The final nginx image remains lean due to the multi-stage build.

Fixes GitHub Actions error in workflow run #19333505156
@ChildWerapol ChildWerapol merged commit e64d75f into main Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants