lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.6.10 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.6.15

- old
+ new

@@ -111,11 +111,11 @@ <%= private_gemserver_env_variable_name %>="$(cat /kaniko/gemserver_credentials)" && \ export <%= private_gemserver_env_variable_name %> && \ bundle install<% if depend_on_bootsnap? && options.precompile != "defer" -%> && \ bundle exec bootsnap precompile --gemfile<% end %> && \ <% else -%> -RUN bundle install<% if depend_on_bootsnap? && options.precompile != "defer" -%> && \ +RUN <% if options["precompiled-gems"] != true %>bundle config set force_ruby_platform true && \<%= "\n " %><% end %>bundle install<% if depend_on_bootsnap? && options.precompile != "defer" -%> && \ bundle exec bootsnap precompile --gemfile<% end %> && \ <% end -%> rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git <% end -%> @@ -294,10 +294,10 @@ <% end -%> EOF <% end -%> # Start the server by default, this can be overwritten at runtime -EXPOSE 3000 +EXPOSE <%= using_thruster? ? '80' : '3000' %> <% if deploy_database == 'sqlite3' -%> VOLUME /data <% end -%> <% unless fly_processes -%> <% if !options.procfile.blank? -%>