-
Notifications
You must be signed in to change notification settings - Fork 642
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
Do not use cache when building the image #348
Comments
More explanations: I am trying this plugin to implement some continuous delivery. Main idea is To build the image I use an external Dockerfile:
Dockerfile content:
This Dockerfile is as lean as possible, the base image contains all required With this approach it seems that docker is using the cache always (when building There could also be another solution to all of this. Technically, for what I am |
You are right, Docker is caching by default any command in a Dockerfile if the line within the Dockerfile doesn't change, so if you don't change the URL for a wget it will be cached by default. Having a non-caching operational mode is a good idea, I will have a look to your PR in a minute. Thanks ... and sorry for the delay .. |
The |
Could you try using |
That works, I tried to set it directly in the pom which doesn't seem to be supported. I expected it to to work like |
when will we get it fixed? |
Isn't it ? (sorry, I'm alsways a bit lazy with closing issues) |
From the docs:
thats for a |
My first post for this project, thank you for sharing
It is correct to assume currently (v 0.13.6) has no flag do disable caching during image building?
(docker build --no-cache=true)
A search for 'cache' in http://ro14nd.de/docker-maven-plugin/ returns no results.
Also no relevant results in issues associated with this project.
Or there is an alternative way to disable caching during image build?
Happy to work on a pull request if this has any value for the project.
The text was updated successfully, but these errors were encountered: