lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.6.7 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-1.6.8
- old
+ new
@@ -284,11 +284,15 @@
<% if options.prepare -%>
# Entrypoint prepares the database.
<% else -%>
# Entrypoint sets up the container.
<% end -%>
+<% if using_litefs? -%>
+ENTRYPOINT ["litefs", "mount"]
+<% else -%>
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
+<% end -%>
<% if procfile.size > 1 -%>
# Build a Procfile for production use
COPY <<-"EOF" /rails/Procfile.prod
<% procfile.each do |name, command| -%>
@@ -305,9 +309,9 @@
<% unless fly_processes -%>
<% if !options.procfile.blank? -%>
CMD ["foreman", "start", "--procfile=<%= options.procfile %>"]
<% elsif procfile.size > 1 -%>
CMD ["foreman", "start", "--procfile=Procfile.prod"]
-<% else -%>
+<% elsif !using_litefs? -%>
CMD <%= procfile.values.first.split(" ").inspect %>
<% end -%>
<% end -%>