Skip to content

Instantly share code, notes, and snippets.

@rvlaraujo
Created September 23, 2021 00:22
Show Gist options
  • Select an option

  • Save rvlaraujo/fe621791048011b4331e61fd36f9b0e3 to your computer and use it in GitHub Desktop.

Select an option

Save rvlaraujo/fe621791048011b4331e61fd36f9b0e3 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment