Adds --no-cache Docker build option#1639
Merged
djmb merged 2 commits intobasecamp:mainfrom Oct 6, 2025
Merged
Conversation
Contributor
|
Hi Matthew, Thank you for this pull request, it would be really useful 👍 Have a good day |
Contributor
Author
|
@tortuetorche Thanks! I'm looking forward to this feature. Tests are failing due to unrelated changes in this PR. It appears that tests are failing on the |
Contributor
Author
|
@djmb just wanted to give a polite poke about this PR, as it would be very useful to being able to easily/cleanly rebuild when trying to address various CVEs |
Collaborator
|
Sorry for the delay @matthewbjones - looks good! |
Contributor
Author
|
@djmb no worries at all! I saw some recent activity so wanted to ping you while you were working on things :-) Thanks for the merge, this will be a great feature to have! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes you would like the ability to build and/or deploy your application's image without the Docker build cache. This PR adds the ability to specify
--no-cachefor related commands, which passes along to the Docker build command. This is good when you want to do a full rebuild, such as when new system packages are available (CVE fixes, etc.) and avoids the annoyance of having to manually update yourDockerfileto do a manual cache bust.