The current controller image is around 853MB in size at the moment. This is because we are using golang:1.21-bookworm
as base image. For the controller itself this image provides way more than actually needed, therefore this MR switches to a minimized image as base (debian:bookworm-slim
).
It should also be possible to use scratch
or alpine
but this would need some adjustments in combination with the generated plugins.
The image used in this MR is already quite small in size (~113mb with the controller) and does not need any further adjustments.
Reducing the size even further would be something for a real production setup.
Changed from golang:1.21-bookworm
to debian:bookworm-slim
as base image for the controller
Everyone loves smaller images