Builder not changing from Dockerfile to NIXPACK

mukundmadhav054
TRIAL

a year ago

Hi Team, in the recent commits I had to add Dockerfile in my repository as it was needed for my work and with that the builder in railway.app changed from NIXPACK to Dockerfile and it is by default. I tried to manually changing it by adding railway.json file in the directory with the configuration { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "runtime": "UNSPECIFIED", "numReplicas": 1, "sleepApplication": false, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 }}But still the configuration is looking like this : { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "DOCKERFILE", "buildCommand": "npm install --omit=dev; npm run build", "dockerfilePath": "server/Dockerfile" }, "deploy": { "runtime": "UNSPECIFIED", "numReplicas": 1, "sleepApplication": false, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } }Also, there is no option to manually select the builder. Please guide me if I have to take any steps or please fix this issue.Thanks

Solved

3 Replies

a year ago

If you no longer wish to use a Dockerfile you must remove it rename it.


10 months ago

Hi railway team, isn't there any other way around to change builder from default Docker detection to "NIXPACKS" ? rather then removing it from the root or renaming the file name which may cause my AWS production deployments to crash! - Thanks


10 months ago

At this time that is the only way.


Status changed to Solved brody 11 months ago