[docker][experimental] Split the build 90/72590/6
authorEmma Foley <efoley@redhat.com>
Mon, 31 May 2021 18:45:04 +0000 (19:45 +0100)
committerEmma Foley <efoley@redhat.com>
Mon, 5 Jul 2021 11:54:16 +0000 (12:54 +0100)
commit7a731e7183eec2a242f28e6686ffe41250b8e5d6
tree221890713f2aad2c77cfb0f73e0c7d181b65cb99
parent9517cbdae0f9e7e6e6446bbc5b7ad8ae6a235de8
[docker][experimental] Split the build

Split the container build into two stages:
* builder
  Builds collectd and containers all the build artifacts

* final
  Containers collectd binary and all the dependencies needed to run.
  Does not contain build artifacts, which contribute to a very large
  container size.

The main advantage is that the final container is much smaller (~700MB vs
1.2GB).

Change-Id: Ia75734096233b7ecab9d81df06084c24bde2bf90
Signed-off-by: Emma Foley <efoley@redhat.com>
docker/barometer-collectd-experimental/Dockerfile