docker build cache

Any way to trigger a build with --no-cache turned on?
9 Replies
Percy
Percy13mo ago
Project ID: e7d81d77-7cfa-427f-8de3-7f01da83fad6
ADBurpitt
ADBurpitt13mo ago
e7d81d77-7cfa-427f-8de3-7f01da83fad6 it's not picking up changes in pyproject.toml so poetry installs are cached
Ray
Ray13mo ago
Set NIXPACKS_NO_CACHE to 1 in your service
ADBurpitt
ADBurpitt13mo ago
added the variable, build is still cached:
#9 [5/7] COPY ./pyproject.toml ./poetry.lock* /code/
#9 CACHED

#10 [6/7] RUN poetry config virtualenvs.create false && poetry install --no-dev
#10 CACHED
#9 [5/7] COPY ./pyproject.toml ./poetry.lock* /code/
#9 CACHED

#10 [6/7] RUN poetry config virtualenvs.create false && poetry install --no-dev
#10 CACHED
Ray
Ray13mo ago
Are you using a custom Dockerfile?
ADBurpitt
ADBurpitt13mo ago
yep
Paddy
Paddy13mo ago
Hi @rayofbytes Any updates to this issue? This issue is blocking our production. Setting NIXPACKS_NO_CACHE to 1 didn't help. 😢
mbembaships#1
mbembaships#112mo ago
+1 looks like this is still just "planned"? This is a must that make using Dockerfiles on railway useless without https://feedback.railway.app/feature-requests/p/provide-a-way-to-invalidate-dockerfile-cache
Provide a way to invalidate Dockerfile cache | Feature Requests | R...
Sometimes the user wants to invalidate the Dockerfile cache. It could for security reasons or just because they are using some dynamic content on RUN commands.
odysseus
odysseus8mo ago
Is there any update here?