build_docker_container.sh 431 B

1234567891011121314
  1. #!/bin/sh
  2. docker run \
  3. --rm \
  4. -it \
  5. --gpus '"device=0"' \
  6. -p 8080:8080 \
  7. -p 8081:8081 \
  8. -p 8082:8082 \
  9. -p 7070:7070 \
  10. -p 7071:7071 \
  11. --name yolov5_torch_serve-gpu \
  12. -e install_py_dep_per_model=true \
  13. --mount type=bind,source=/$(pwd)/models-server/model-store,target=/home/models-server/model-store \
  14. torchserve:cu11-1.0