Skip to content

Fix Docker build by pinning Node.js to v16#1575

Open
Vikashchaurasiya07 wants to merge 1 commit intosnyk-labs:mainfrom
Vikashchaurasiya07:fix-nodejs-version
Open

Fix Docker build by pinning Node.js to v16#1575
Vikashchaurasiya07 wants to merge 1 commit intosnyk-labs:mainfrom
Vikashchaurasiya07:fix-nodejs-version

Conversation

@Vikashchaurasiya07
Copy link

Summary

Docker build fails for the goof project because Node.js 18+ rejects the --openssl-legacy-provider option, causing the container to exit immediately.

Changes

  • Updated Dockerfile to pin Node.js version to 16.20.2
  • Verified that docker-compose build and docker-compose up succeed locally

Testing

  • docker-compose build --no-cache
  • docker-compose up
  • Node.js inside container reports version v16.20.2 ✅

Notes

  • Warnings from MySQL (TIMESTAMP, TLSv1, PID file) are informational and do not affect functionality.
  • Docker Compose version warning is ignored; no changes required for this PR.

Issue

Fixes #1290

@Vikashchaurasiya07
Copy link
Author

@sebsnyk bruhh can you check this one

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.

[BUG]: goof docker build fails.

1 participant