DEV Community

Discussion on: Build a super minimalistic Docker Image to run your Golang App

Collapse
 
kcq profile image
Kyle Quest • Edited

Another option to consider is DockerSlim... You get to keep a simple Dockerfile. No need for multi-stage and you don't need to worry about missing the certificates or any other extra dependencies.

Take a look at this example github.com/docker-slim/examples/tr...

The original container image is 648MB and it becomes 9.3MB after DockerSlim is done with it.

Collapse
 
chseki profile image
Christian Seki

I saw the README.md from the DockerSlim project and it's super interesting. I'll definitely try it, thanks for sharing Kyle!

Collapse
 
kcq profile image
Kyle Quest

happy to do an overview to show some of its lesser known capabilities and its more advanced use case if you are interested