parabuzzle / craneoperator

Gives you a simple web interface for browsing around a Docker Registry
https://hub.docker.com/r/parabuzzle/craneoperator
MIT License
127 stars 32 forks source link

Refactor to multi-stage build and latest ruby container #50

Open TheBay0r opened 6 years ago

TheBay0r commented 6 years ago

Hi @parabuzzle I was experimenting around with multi stage builds in docker and I'm quite satisfied with the results of it. When using the new Dockerfile the image uncompressed image size of craneoperator drops from 388MB down to 124MB

I'm not a really sure why I need the bundle install in the "running"-container. If I don't put it there, in complains that some gems need to be installed first although they are all available in the vendor/ folder. Maybe you can give me some input on that, since I'm not familiar with ruby/gem!?

Other than that everythings seems to be working fine on my machine 🙂

parabuzzle commented 6 years ago

This is awesome! it was on my bucket list to move my stuff to multi-stage builds.. I'll see what's going on with the gem install.. bundler can be finicky.

TheBay0r commented 6 years ago

@parabuzzle any news about this?

scones commented 5 years ago

since i am already stalking this repository: multistage builds are a good idea. with ruby 2.6 this might be just unnecessary complexity, as bundler is part of ruby with 2.6