Skip to content

Commit

Permalink
format: docker-entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Jan 16, 2025
1 parent bc7dec5 commit 68b68bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ set -e

# exec commands
if [ -n "$*" ]; then
sh -c "$*"
sh -c "$*"
fi

# keep the docker container running
# https://github.com/docker/compose/issues/1926#issuecomment-422351028
if [ "${KEEPALIVE}" -eq 1 ]; then
trap : TERM INT
tail -f /dev/null & wait
# sleep infinity & wait
fi
trap : TERM INT
tail -f /dev/null &
wait
# sleep infinity & wait
fi

0 comments on commit 68b68bc

Please sign in to comment.