Created
September 14, 2018 21:00
-
-
Save spurti-chopra/df498decf35c1af269175fe11254e084 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build --squash -t app-squashed . | |
$ docker history app-squashed | |
IMAGE CREATED CREATED BY SIZE COMMENT | |
c3f98f9241fc 2 hours ago 0B merge sha256:7ee5b606949f15cdfc790a44b49ea83b2ae7c8be808eedfb74234b47a50e66f1 to sha256:b9e15a5d1e1a11a69061b1dc2e3641805a2dc54e1338faf7f87f4c2c21ed3e6a | |
<missing> 2 hours ago /bin/sh -c rm -rf app.zip 0B | |
<missing> 2 hours ago /bin/sh -c chmod 777 app.zip 0B | |
<missing> 2 hours ago /bin/sh -c #(nop) ADD file:b12845ba907bbbc42… 0B | |
<missing> 8 days ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B | |
<missing> 8 days ago /bin/sh -c mkdir -p /run/systemd && echo 'do… 7B | |
<missing> 8 days ago /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$… 2.76kB | |
<missing> 8 days ago /bin/sh -c rm -rf /var/lib/apt/lists/* 0B | |
<missing> 8 days ago /bin/sh -c set -xe && echo '#!/bin/sh' > /… 745B | |
<missing> 8 days ago /bin/sh -c #(nop) ADD file:a83ab1826f43e88bc… 115MB | |
Final Comparison of sizes | |
app-squashed latest c3f98f9241fc 2 hours ago 115MB | |
app-unsquashed-run-combined latest 3c9f49f965f8 2 hours ago 325MB | |
app-unsquashed latest 7ee5b606949f 2 hours ago 534MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment