Disable cache for from image

721 Views Asked by At

I'm writing a Dockerfile that depends on another image in a multistage build. Here is it

FROM my_another_image:latest as mai

...

The problem is I don't want to manually delete my_another_image:latest any time I'm building the image from the Dockerfile (I never know when the update for my_another_image:latest is available). Is there a way to disable cache for the FROM statement in the Dockerfile? docker build --no-cache preverents the image built from Dockerfile from caching, not its dependencies.

0

There are 0 best solutions below