hapistrano icon indicating copy to clipboard operation
hapistrano copied to clipboard

Replace Dockerfile base with distroless

Open sestrella opened this issue 4 years ago • 0 comments

Taking the Distroless Rust example as a reference, the existing Dockerfile could be split into different stages:

  • One that compiles the project and generates a binary
  • Another one that places that binary in a distroless image

The outcome would be a very tiny image. Taking into account that hapistrano is a deployment tool that is mostly executed by a CI pipeline, shrinking the image is beneficial since it would reduce the overhead produced by pulling the image from Docker Hub to the CI worker.

sestrella avatar Mar 30 '22 19:03 sestrella