[elbe-devel] [PATCH] docker: build without using local cache
Manuel Traut
manut at linutronix.de
Wed Aug 15 11:46:22 CEST 2018
Docker caches build steps. If e.g. mirrors are changed in a first step
not all necessary following steps are executed. The result is, that the
mirror change is in the sources.list, but the packages from the cached
run that was executed before is used.
Also due to the caching, updates on the debian mirror are ignored.
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
contrib/dockerfile/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/dockerfile/Makefile b/contrib/dockerfile/Makefile
index 3400626b..f66de31a 100644
--- a/contrib/dockerfile/Makefile
+++ b/contrib/dockerfile/Makefile
@@ -20,6 +20,7 @@ build:
docker build --build-arg http_proxy=$(http_proxy) \
--build-arg https_proxy=$(https_proxy) \
--build-arg no_proxy=$(no_proxy) \
+ --no-cache \
-t $(IMAGENAME) .
rm Dockerfile
--
2.18.0
More information about the elbe-devel
mailing list