-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply some best practices to Dockerfile (#3)
Use alpine image instead of golang for earliest stage, which did not use anything from the golang image. Use apk add --no-cache per convention inside Dockerfiles, which does not store apk's package cache on disk. This reduced the final image size by about 3MB. Move apk add package arguments to their own lines, so that diffs are trivial to follow as individual packages are added or removed. Validate checksum of downloaded dasel binary, to avoid a potential supply chain attack. Further possible improvements: - Validate checksum of musl download - Maybe point at a fixed tag of boxboat/config-merge - Maybe download gzipped dasel binaries instead of raw binaries - Update to newer point release of dasel - Unify the two Dockerfiles by a top-level build arg to switch between the alternative "busybox-min" stages
- Loading branch information
1 parent
def5dd9
commit eb88abe
Showing
2 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
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
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