Disable caching with Dockerfile

8 months ago

How can I disable caching for a service where I am using Dockerfile for build.

0 Replies

8 months ago

For some reason railway is using cached docker file which points to the dev dockerfile not the prod one.

even after adding NIXPACKS_NO_CACHE=1 does not seems to resolve the issue.


8 months ago

nixpacks has nothing to do with building from dockerfiles


8 months ago

please see this docs section -


8 months ago

Thanks, this worked!


Disable caching with Dockerfile - Railway Help Station