lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.0.2 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.0.3

- old
+ new

@@ -11,9 +11,15 @@ FROM <%= platform %>quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-<%= @options.jemalloc ? 'jemalloc-' : '' %>slim as base <% else -%> FROM <%= platform %>ruby:$RUBY_VERSION-slim as base <% end -%> +<% unless options.label.empty? -%> +<% options.label.each do |key, value| -%> +LABEL <%= key =~ /^\w[.\w]*$/ ? key : key.inspect %>=<%= value.inspect %> +<% end -%> + +<% end -%> # Rails app lives here WORKDIR /rails # Set production environment ENV RAILS_ENV="production" \