5

It's quite a challenge to try and get a Docker image build as small as possible. But the worst bloat is coming from having to use CentOS 7 as a base image.

Comments
  • 1
    pfff is mandatory for you to use CentOS?

    You have no much room for improvement there.
  • 1
    Quick tip, check out multi step dockerfiles.. Depends on what you are doing of course, but in my case I can do the build in one step, then copy the artifacts to the other step.. My end image is about 3mb, all included :D
  • 0
    @antorqs not mandatory but preferred due to my other team members not quite understanding what containerisation is. They just think it's another VM and still want all the features of a normal CentOS. But really, most devs don't even use 90% of the features in a Linux environment. More frustrating is that this is only for local development purposes.

    For now I'll stick with it but will try to convince them they don't need it.
  • 0
    @AndreKlang multi-step dockerfiles is something new isn't it? Will need to read up on it.
  • 0
    @IdolWotaP yeah, kinda, I just found out a week ago :) https://docs.docker.com/develop/...
Add Comment