Disable caching with Dockerfile
How can I disable caching for a service where I am using Dockerfile for build.
Solution:Jump to solution
please see this docs section - https://docs.railway.app/guides/build-configuration#disable-build-layer-caching
5 Replies
Project ID:
N/A
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.nixpacks has nothing to do with building from dockerfiles
Solution
please see this docs section - https://docs.railway.app/guides/build-configuration#disable-build-layer-caching
Thanks, this worked!