lib/generators/templates/Dockerfile.erb in dockerfile-rails-0.4.9 vs lib/generators/templates/Dockerfile.erb in dockerfile-rails-0.5.0

- old
+ new

@@ -135,10 +135,14 @@ <% else -%> LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.2" \ <% end -%> MALLOC_CONF="dirty_decay_ms:1000,narenas:2,background_thread:true"<% end %> +<% if options.prepare -%> # Entrypoint prepares the database. +<% else -%> +# Entrypoint sets up the container. +<% end -%> ENTRYPOINT ["/rails/bin/docker-entrypoint"] # Start the server by default, this can be overwritten at runtime EXPOSE 3000 CMD ["./bin/rails", "server"]