Using packer with distroless base images

I’m interested in using packer with the distroless base images from google. These images only have the absolute bare minimum installed, less than the usual alpine images. They don’t even have /bin/bash, /bin/sh, or any shell installed.

Has anyone been able to successfully use packer to create a docker image with a distroless image as a base?

1 Like

Hey I am thinking along the same lines as you! Instead of distroless I am working against “scratch” I believe the issue I am encountering is that the /go/bin/packer executable produced by “make dev” is dynamically linked.

How can we produce a statically linked exectuable?