Procfile over Dockerfile

I have Dockerfile in my repo root for local dev, and I want to deploy using Procfile but Docker file is automatically detected as deployment strategy instead of Procfile, how to use Procfile instead?
Solution:
rename the dockerfile to something other than DockerFile. I do DockerFile-dev
Jump to solution
7 Replies
Percy
Percy15mo ago
Project ID: b02e81da-b468-49d0-8ac2-3adb2060c0fc
SHAKA PAKA
SHAKA PAKA15mo ago
b02e81da-b468-49d0-8ac2-3adb2060c0fc
Solution
Adam
Adam15mo ago
rename the dockerfile to something other than DockerFile. I do DockerFile-dev
SHAKA PAKA
SHAKA PAKA15mo ago
thanks
SHAKA PAKA
SHAKA PAKA15mo ago
I guess creating railway.json in repo root and setting up buildpack to nixpacks may also work?
Adam
Adam15mo ago
Yes, but the way I mentioned is most reliable
Brody
Brody15mo ago
it wouldnt, having a Dockerfile in the root overrides all nixpacks related build settings
Want results from more Discord servers?
Add your server