R
Railway16mo ago
Yashu

How to configure Nixpacks to not use Dockerfile?

Even though I have a Dockerfile in my codebase. I still want to use custom script file to build & start the server. How can I change that behaviour in Railway? Service ID: c2b1be14-293e-4445-a697-4eb6ff3b185f
Solution:
remove or rename the dockerfile to something like Dockerfile.dev
Jump to solution
6 Replies
Percy
Percy16mo ago
Project ID: c2b1be14-293e-4445-a697-4eb6ff3b185f
Solution
Brody
Brody16mo ago
remove or rename the dockerfile to something like Dockerfile.dev
Yashu
YashuOP16mo ago
Is there no other way?
Brody
Brody16mo ago
not that know of, any reason why you can't rename the dockerfile, or why you don't want to use the dockerfile?
Yashu
YashuOP16mo ago
I am using that Dockerfile for production (hosted else where), and I want to deploy a separate staging environment on Railway.
Brody
Brody16mo ago
rename to Dockerfile.prod and tell the elsewhere host to use Dockerfile.prod
Want results from more Discord servers?
Add your server