lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.0.10 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.0.11

- old
+ new

@@ -28,10 +28,13 @@ BUNDLE_WITHOUT="<%= options.ci? ? 'development' : 'development:test' %>" # Update gems and preinstall the desired version of bundler ARG BUNDLER_VERSION=<%= Bundler::VERSION %> RUN gem update --system --no-document && \ +<% if options.ci? -%> + gem install -N irb reline && \ +<% end -%> gem install -N bundler -v ${BUNDLER_VERSION} <% unless base_requirements.empty? -%> # Install packages needed to install <%= base_requirements %> <%= render partial: 'apt_install', locals: {packages: base_packages, clean: true, repos: ''} %> @@ -129,12 +132,9 @@ <% elsif procfile.size > 1 -%> RUN gem install foreman <% end -%> # Copy built application from previous stage -<% if options.ci? -%> -COPY --from=build /usr/local/bundle /usr/local/bundle -<% end -%> COPY --from=build /rails /rails <% if api_client_dir -%> # Copy built client COPY --from=client /rails/<%= api_client_dir %>/build /rails/public