2023-10-15 16:47:24 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
# Remove a potentially pre-existing server.pid for Rails.
|
|
|
|
|
rm -f /usr/src/app/tmp/pids/server.pid
|
|
|
|
|
|
2025-11-24 08:22:44 -05:00
|
|
|
rm -rf /usr/local/bundle/cache/*.gem
|
|
|
|
|
|
2023-10-15 16:47:24 -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 "$@"
|