entrypoint.sh 197 B

123456789101112
  1. #!/bin/bash
  2. set -e
  3. if [[ "$1" = "serve" ]]; then
  4. shift 1
  5. torchserve --start --ts-config /home/model-server/config.properties
  6. else
  7. eval "$@"
  8. fi
  9. # prevent docker exit
  10. tail -f /dev/null