Re:Show HN: Compare local Docker images with ones in registry
by dlor on Saturday September 02, 2017 @10:28AM
(#15156124)
I've even been using these rules here to work on making the Debian distro rootfs.tar.xz times we provide for Google Cloud Platform reproducible.
The same source should lead to the same tarball, and anyone should be able to clone the repo and verify that.
github.com/GoogleCloudPlatform/debian-docker
The repo links to a talk that goes into more depth, but the basic idea is to a use minimal language-specific base for your runtime instead of e.g. statically linking all of ubuntu into your image.
The base images are built with bazel's docker rules[2], so you get reproducible builds.
[1] https://github.com/GoogleCloudPlatform/distroless
[2] https://github.com/bazelbuild/rules_docker