-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using cache when building the image #8
Comments
@ondrej-fabry: That would avoid any potential caching of image. This should avoid using an outdated previously built image as that would be a bad thing. |
Not sure I follow. Why would it be a bad thing to cache first |
That's not the only time when the cache needs to be busted. The cache needs to be busted when any relevant packages are updated. Having built an image some months ago and using that cache isn't OK. |
Okay, I see your point now. However currently the cache will be always busted when using build script, right? |
We can set up a different build target to be used only for development which doesn't bust the cache. |
That sounds like good idea. It would provide both options and default could be busting the cache. |
This is mainly to make sure docker cloud doesn't have busted cache. |
The Dockerfile seems to be split into two
RUN
instructions to make use of caching, hence thegit clone
in first andgit pull
in second. However build script currently uses--no-cache
flag so it won't use the cache.Any reason for this?
The text was updated successfully, but these errors were encountered: