docker build cache

Any way to trigger a build with --no-cache turned on?
9 Replies
Percy
Percy2y ago
Project ID: e7d81d77-7cfa-427f-8de3-7f01da83fad6
ADBurpitt
ADBurpittOP2y ago
e7d81d77-7cfa-427f-8de3-7f01da83fad6 it's not picking up changes in pyproject.toml so poetry installs are cached
Ray
Ray2y ago
Set NIXPACKS_NO_CACHE to 1 in your service
ADBurpitt
ADBurpittOP2y 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
Ray2y ago
Are you using a custom Dockerfile?
ADBurpitt
ADBurpittOP2y ago
yep
Paddy
Paddy17mo 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#116mo 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
odysseus12mo ago
Is there any update here?
Want results from more Discord servers?
Add your server