Move production.Dockerfile closer to the rails template

This commit is contained in:
Ryan W
2023-09-30 11:20:46 -07:00
parent 1d8c3828a3
commit 4cf13fefd9
3 changed files with 25 additions and 33 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
# Remove a potentially pre-existing server.pid for Rails.
rm -f /usr/src/app/tmp/pids/server.pid
echo "bundle install..."
bundle check || bundle install --jobs 4
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"