lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.4.0 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.4.1
- old
+ new
@@ -228,19 +228,18 @@
<% procfile.each do |name, command| -%>
<%= name %>: <%= command %>
<% end -%>
EOF
+<% end -%>
# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
<% if deploy_database == 'sqlite3' -%>
VOLUME /data
<% end -%>
+<% unless fly_processes -%>
+<% if procfile.size > 1 -%>
CMD ["foreman", "start", "--procfile=Procfile.prod"]
<% else -%>
-# Start the server by default, this can be overwritten at runtime
-EXPOSE 3000
-<% if deploy_database == 'sqlite3' -%>
-VOLUME /data
-<% end -%>
CMD <%= procfile.values.first.split(" ").inspect %>
+<% end -%>
<% end -%>