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:Jump to solution
rename the dockerfile to something other than DockerFile. I do DockerFile-dev
7 Replies
Project ID:
b02e81da-b468-49d0-8ac2-3adb2060c0fc
b02e81da-b468-49d0-8ac2-3adb2060c0fc
Solution
rename the dockerfile to something other than DockerFile. I do DockerFile-dev
thanks
I guess creating railway.json in repo root and setting up buildpack to nixpacks may also work?
Yes, but the way I mentioned is most reliable
it wouldnt, having a
Dockerfile
in the root overrides all nixpacks related build settings