try a more efficient Dockerfile

This is to prevent cache invalidation in Docker if the Gemfile didn’t
change, we can use the cache and not run bundle install again
remove doc generation when installing Ruby