Is there a way to force a Nixpacks build even when a
Dockerfile
exists?

3 years ago

I am trying to deploy an open-source project which has a Dockerfile at the root of the repository. Said Dockerfile uses the VOLUME keyword which then results in the following error:

The `VOLUME` keyword is banned in Dockerfiles. Use Railway volumes instead. https://docs.railway.app/reference/volumes

Is there a way to tell Railway not to use the Dockerfile and proceed with a deployment using Nixpacks?

3 Replies

3 years ago

Here is a link to the Dockerfile for context.


3 years ago

Railway will always use a Dockerfile if found, the only options I've come across where to remove or rename the Dockerfile

Reference


3 years ago

Confirmed with @jr that this isn't currently possible but he might pick it up soon! (Sharing for whoever ends up here with the same question)


Welcome!

Sign in to your Railway account to join the conversation.

Loading...