Reduce size of docker images for distribution 06/129906/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 8 Jul 2022 16:12:40 +0000 (17:12 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Wed, 13 Jul 2022 11:28:53 +0000 (12:28 +0100)
commit930ea6e2f48a3975eb573b80b28ce573f10c3a62
tree4f0ac363427a542c1a093fcc95d49b6f7824d6e8
parentf820c8b9c3a140c73570b2fafe7482d39477e7f8
Reduce size of docker images for distribution

Avoid creating extra layers when extracting tarball
Remove redundant chown commands
Reduce size of Alpine image by 37% (357MB to 226MB)
Reduce size of OpenSuse image by 26% (525MB to 389MB)

Issue-ID: POLICY-4276
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ieb4faceef2264059dd868ecd04581e29b436c75a
packages/policy-distribution-docker/src/main/docker/Dockerfile
packages/policy-distribution-docker/src/main/docker/suse.Dockerfile