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
Percy2y ago
Project ID: b02e81da-b468-49d0-8ac2-3adb2060c0fc
SHAKA PAKA
SHAKA PAKAOP2y ago
b02e81da-b468-49d0-8ac2-3adb2060c0fc
Solution
Adam
Adam2y ago
rename the dockerfile to something other than DockerFile. I do DockerFile-dev
SHAKA PAKA
SHAKA PAKAOP2y ago
thanks
SHAKA PAKA
SHAKA PAKAOP2y ago
I guess creating railway.json in repo root and setting up buildpack to nixpacks may also work?
Adam
Adam2y ago
Yes, but the way I mentioned is most reliable
Brody
Brody2y ago
it wouldnt, having a Dockerfile in the root overrides all nixpacks related build settings
Want results from more Discord servers?
Add your server