greptimedb
greptimedb copied to clipboard
Add building option to build images base on distroless image
What type of enhancement is this?
User experience
What does the enhancement do?
To further reduce the size of the image, we can use distroless(as the building option) as the base image.
Implementation challenges
No response
To be clear, this issue is to add the option for self-building Docker image. It won't be integrated into our release workflow (or at least yet).
The related file is:
-
docker/buildx
- You can findcentos/Dockerfile
andubuntu/Dockerfile
there for reference. It's a one-stop build script for producing the image. We may add adistroless/Dockefile
there. -
docker/ci
- you can also findcentos/Dockerfile
andubuntu/Dockerfile.
It packages a pre-built binary to a find image environment. We may add adistoless/Dockerfile
there also to copy a pre-built binary and set up the environment. -
Makefile
- it containsdocker-image-buildx
anddocker-image
target. We may makeBASE_IMAGE=distoless
work here.