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
6 Replies
Project ID:
c2b1be14-293e-4445-a697-4eb6ff3b185f
Solution
remove or rename the dockerfile to something like Dockerfile.dev
Is there no other way?
not that know of, any reason why you can't rename the dockerfile, or why you don't want to use the dockerfile?
I am using that Dockerfile for production (hosted else where), and I want to deploy a separate staging environment on Railway.
rename to Dockerfile.prod and tell the elsewhere host to use Dockerfile.prod