https://github.com/samrocketman/docker-distroless
My own flavor of distroless distributions.
https://github.com/samrocketman/docker-distroless
Last synced: 11 months ago
JSON representation
My own flavor of distroless distributions.
- Host: GitHub
- URL: https://github.com/samrocketman/docker-distroless
- Owner: samrocketman
- License: mit
- Created: 2023-11-13T02:02:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T13:02:48.000Z (over 2 years ago)
- Last Synced: 2025-01-06T10:13:22.294Z (over 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Distroless Docker Images
When building distroless you should do it yourself rather than relying on a 3rd
party to provide "distroless".
These images are based off of [an article][blog] I wrote and all of the
companion articles contained within its sources.
# Debian
Build off of the latest available [Debian docker image][debian].
docker build -t distroless-debian -f Dockerfile.debian .
Build a specific version of Debian.
docker build --build-arg debian=11 -t distroless-debian -f Dockerfile.debian .
# Amazon Linux 2023
Build a minimal distroless version of `amazonlinux:2023` with
[`Dockerfile.amazonlinux2023`](Dockerfile.amazonlinux2023).
docker build -t distroless-al23 -f Dockerfile.amazonlinux2023 .
### Java distroless
Also based on Amazon Linux 2023.
docker build -t distroless-al23-java21 -f Dockerfile.amazonlinux2023-java .
Or building alternate versions of Java.
docker build --build-arg java=11 -t distroless-al23-java11 -f Dockerfile.amazonlinux2023-java .
docker build --build-arg java=17 -t distroless-al23-java17 -f Dockerfile.amazonlinux2023-java .
[blog]: https://sam.gleske.net/blog/engineering/2022/10/25/guide-to-production-docker-images.html
[debian]: https://hub.docker.com/_/debian