Use alpine for phx.gen.release --docker

Debian seems like a"good enough" default for me. It would introduce little barrier to new users running it in a Linux container. If we want to optimize further - why not choosing scratch or distroless? (Yeah I wanted it with Bazel - Elixir and Bazel (Google’s open-sourced monorepo build system) )

If there are strong reasons to use Alpine as the default, it might be better to make it the only option (as Debian currently is), rather than supporting multiple base images - which could be add extra maintenance overhead.

@ericmj I just noticed that hexpm/bob recently switched its Dockerfile base image from Alpine to Debian. Could you share what motivated the change? Was it related to GitHub Actions? Alpine => Debian and updates by ericmj · Pull Request #204 · hexpm/bob · GitHub

1 Like