R
Railway5mo ago
Mustafa

railway changes node version .

I've a docker file that require node 18.19.1 but when run with railway it changes to 18.20.2 which cause errors in build
Solution:
load metadata for docker.io/library/node:18.19.1
load metadata for docker.io/library/node:18.19.1
What makes you think 18.20.2 is being used?...
Jump to solution
11 Replies
Percy
Percy5mo ago
Project ID: b7971003-5caf-446a-adb5-6a88dcd7e375
Mustafa
MustafaOP5mo ago
b7971003-5caf-446a-adb5-6a88dcd7e375 Docker runs locally as expected . but when deploy on railway it fails because of that different version also I've specified the docker path in .env RAILWAY_DOCKERFILE_PATH=Dockerfile.main and it's detected as expected . but the node version is not the same @Percy @Percy
Brody
Brody5mo ago
Percy is a bot full build logs please - https://bookmarklets.up.railway.app/log-downloader/
Brody
Brody5mo ago
these are the deployment logs
Mustafa
MustafaOP5mo ago
Solution
Brody
Brody5mo ago
load metadata for docker.io/library/node:18.19.1
load metadata for docker.io/library/node:18.19.1
What makes you think 18.20.2 is being used?
Mustafa
MustafaOP5mo ago
Logs was provide 18.20.2 . but after set NIXPACKS_NODE_VERSION to 18.19.1 . it changes it to 18.19.1
Brody
Brody5mo ago
nixpacks is not being used here, you are using a Dockerfile as per your build logs
Mustafa
MustafaOP5mo ago
Issue fixed . I've changed and upgrades some packages . and now deploy works as expected thanks @Percy @Brody
Brody
Brody5mo ago
Percy is still only a bot
Want results from more Discord servers?
Add your server