dockerfilePath is only supported for the Dockerfile builder

Hi I am unable to redeploy a project using Nixpacks. It states in the Documentation under Builds that "we will also build using a Dockerfile if found at the project root", but it doesn't. I am also unable to change the builder on my project like shown in the image attached. Any help is appreciated!
Solution:
Yeah there is a strange setting on the deployment related to the dockerfile path. Can you please try creating a new service and deploying the same code.
Jump to solution
37 Replies
Percy
Percy16mo ago
Project ID: N/A
Brody
Brody16mo ago
do you have a dockerfile at the root of your project?
frankie.v3digitalstudio
Yes, the project is a direct fork of https://github.com/railwayapp-templates/listmonk
Brody
Brody16mo ago
can you send the fork
Brody
Brody16mo ago
make it public?
frankie.v3digitalstudio
Done
Brody
Brody16mo ago
can you show me a few screenshots of your listmonk service settings
frankie.v3digitalstudio
Yeah sure, what are you looking for a screenshot of specifically? Build commands?
Brody
Brody16mo ago
the attached repo, branch, etc etc
frankie.v3digitalstudio
Sure, here is the Service and Build sections
Brody
Brody16mo ago
interesting and what do your build logs say?
frankie.v3digitalstudio
Just the title of this help post "dockerfilePath is only supported for the Dockerfile builder"
Brody
Brody16mo ago
screenshot please
Brody
Brody16mo ago
yeah that's not supposed to happen I know I told Percy the project id was N/A but would you mind sending your project id
frankie.v3digitalstudio
Yeah sure, I tried using CMD + K to look that up, but nothing came up for project id
Brody
Brody16mo ago
it's definitely in there, it's also in the url
frankie.v3digitalstudio
1006629907067064482 Looks like
Brody
Brody16mo ago
that's absolutely not it I don't know what that is
Brody
Brody16mo ago
uh that's discord, we want the railway project id
frankie.v3digitalstudio
1f777c81-a2df-44ac-a6ea-a4a357a75838
Duchess
Duchess16mo ago
Thread has been flagged to Railway team by @Brody.
jr
jr16mo ago
Taking a look at this now. Did you have a environment variable set to specify the location of the dockerfile?
frankie.v3digitalstudio
Hi, the Dockerfile is in the root of the project. In the docs it states "We will also build using a Dockerfile if found at the project root." Can you please clarify if this is incorrect? Thanks for your help!
Brody
Brody16mo ago
that's correct, but have you set any environment variables that have anything to do with a dockerfile?
Solution
jr
jr16mo ago
Yeah there is a strange setting on the deployment related to the dockerfile path. Can you please try creating a new service and deploying the same code.
frankie.v3digitalstudio
No env vars have been set that have anything to do with a dockerfile, I'll try deploying a new service Deploying a new service works just fine, the build setting changed to Dockerfile from Nixpacks
Brody
Brody16mo ago
awesome, problem solved
frankie.v3digitalstudio
A better solution would have been to be able to manually change the Builder like shown in the attached image of this help post, imo. I would have been curious to see if the build would have succeeded that way rather than delete my entire project. Luckily, it hadn't been configured. Thanks for your help and time though jr and Brody
Brody
Brody16mo ago
woah no one said to delete your entire project??
frankie.v3digitalstudio
Maybe I'm confused as to the flow or route I should have taken then. To deploy a new Listmonk "service" or "template" I was prompted to have a new project. Should I have removed the service leaving the DB? Then deploy a new project and connect the old DB to the new project? Can you explain what create a new service means?
Brody
Brody16mo ago
delete the service, add an empty service, add the database variables, add your repo
frankie.v3digitalstudio
Ah I see, I'm thinking strictly of using the template not an empty service, that makes sense That still doesn't explain why I wouldn't be able to change the Builder manually though or if that would have solved it
Brody
Brody16mo ago
jr said there was a setting on the deployment causing it to default to nixpacks
frankie.v3digitalstudio
I did see him mention that, but no setting was configured for the deployment other than a custom subdomain. He must have saw something I didn't. All good. Thanks!
Want results from more Discord servers?
Add your server