Commit 37f2cb0
committed
Switch to multi-stage build
This simplifies the build pipeline, as no "cleanup" stage has to be
done, and allow precise description of the runtime libraries required
to use Valkey.
The result reduces Debian (uncompressed) image size from 140MB to 116MB
(a 17% improvement), and allow certain tools like wget to be removed
from the build by using native `ADD` instructions. The number of
vulnerabilities (as reported by trivy) in the Debian image also drops
from 693 to 77, where the main contributors are left-over build
dependencies.
The Alpine image did not see any improvement, however.
Signed-off-by: Leorize <leorize+oss@disroot.org>1 parent 387dba6 commit 37f2cb0
9 files changed
Lines changed: 271 additions & 377 deletions
File tree
- 7.2
- alpine
- debian
- 8.0
- alpine
- debian
- 8.1
- alpine
- debian
- unstable
- alpine
- debian
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments