Use a scratch based image to limit vulnerabilities#985
Conversation
The alpine base image isn't needed as the statically linked go binary runs fine without it. Using a scratch based image reduces the number of vulnerabilities brought up by scanning tools in the alpine image, and makes the image a bit smaller. Signed-off-by: Liam Byrne <morepork@tetrate.io>
|
Are we just using Alpine image for the certs? I see the change considers that. I think this is okay @arkodg |
|
hey there seem to be multiple GH issues around this my recommendation would be to add a new distroless variant, if this approach is taken, the decision to be made is
|
|
My preference would be to just switch to a distroless image. It would still be possible to debug via an ephemeral debug container. Having 2 images would also be fine, we could go with For us any option is ok, I'm happy to go with whatever you prefer. |
|
thanks and agree @morepork, just switching to |
|
like the distroless approach |
|
Maybe something like this? |
|
Closing in favour of #993 |
The alpine base image isn't needed as the statically linked go binary runs fine without it. Using a scratch based image reduces the number of vulnerabilities brought up by scanning tools in the alpine image, and makes the image a bit smaller.