Add Dockerfile-python (#3814)

This commit is contained in:
Glenn Jocher
2023-07-18 17:11:13 +02:00
committed by GitHub
parent ba523e6b3e
commit e4ddbcf01b
4 changed files with 60 additions and 3 deletions

View File

@ -36,5 +36,8 @@ RUN pip install --no-cache -e . thop --extra-index-url https://download.pytorch.
# Build and Push
# t=ultralytics/ultralytics:latest-cpu && sudo docker build -f docker/Dockerfile-cpu -t $t . && sudo docker push $t
# Pull and Run
# Run
# t=ultralytics/ultralytics:latest-cpu && sudo docker run -it --ipc=host $t
# Pull and Run with local volume mounted
# t=ultralytics/ultralytics:latest-cpu && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/datasets:/usr/src/datasets $t