Skip to content

Adds --no-cache Docker build option#1639

Merged
djmb merged 2 commits intobasecamp:mainfrom
matthewbjones:feature/docker-build-no-cache
Oct 6, 2025
Merged

Adds --no-cache Docker build option#1639
djmb merged 2 commits intobasecamp:mainfrom
matthewbjones:feature/docker-build-no-cache

Conversation

@matthewbjones
Copy link
Contributor

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-cache for 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 your Dockerfile to do a manual cache bust.

@tortuetorche
Copy link
Contributor

Hi Matthew,

Thank you for this pull request, it would be really useful 👍
Do you know why tests are failing?
Is it related to this #1641?

Have a good day

@matthewbjones
Copy link
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 main branch, and yes, likely related to #1641

@matthewbjones
Copy link
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

@djmb
Copy link
Collaborator

djmb commented Oct 6, 2025

Sorry for the delay @matthewbjones - looks good!

@djmb djmb merged commit dbfa6d4 into basecamp:main Oct 6, 2025
7 checks passed
@matthewbjones
Copy link
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants