2023-09-30 11:39:51 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
2023-09-30 10:32:08 -07:00
|
|
|
|
2023-09-30 11:39:51 -07:00
|
|
|
# Remove a potentially pre-existing server.pid for Rails.
|
|
|
|
|
rm -f /usr/src/app/tmp/pids/server.pid
|
2023-09-30 10:32:08 -07:00
|
|
|
|
2023-09-30 11:39:51 -07:00
|
|
|
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 "$@"
|