|
@@ -13,14 +13,20 @@ stage1.stamp: stage0.stamp Builder Ratinox
|
|
|
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
|
|
|
cryptech-builder:stage0 \
|
|
|
/cryptech-builder/Builder
|
|
|
- docker commit cryptech-builder-stage1 cryptech-builder:stage1
|
|
|
+ docker export cryptech-builder-stage1 | \
|
|
|
+ xz -v >cryptech-builder-stage1.xz
|
|
|
docker container rm cryptech-builder-stage1
|
|
|
touch $@
|
|
|
|
|
|
-stage2.stamp: stage1.stamp Dockerfile
|
|
|
+stage2.stamp: stage1.stamp
|
|
|
+ docker rmi cryptech-builder:stage0
|
|
|
+ docker import cryptech-builder-stage1.xz cryptech-builder:stage2
|
|
|
+# rm cryptech-builder-stage1.xz
|
|
|
+ touch $@
|
|
|
+
|
|
|
+stage3.stamp: stage2.stamp Dockerfile
|
|
|
docker build -t cryptech-builder .
|
|
|
touch $@
|
|
|
|
|
|
clean:
|
|
|
- rm -f *.stamp Xvfb_screen*
|
|
|
-
|
|
|
+ rm -f *.stamp Xvfb_screen* cryptech-builder-stage1.xz
|