mirror of
https://github.com/ultralytics/ultralytics
synced 2026-04-21 22:17:16 +00:00
19 lines
961 B
Text
19 lines
961 B
Text
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
|
|
# Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
|
|
# Lightweight CPU image optimized for inference (extends latest-python)
|
|
|
|
# Build from Ultralytics Python image
|
|
FROM ultralytics/ultralytics:latest-python
|
|
|
|
# Set default command to bash
|
|
CMD ["/bin/bash"]
|
|
|
|
# Usage --------------------------------------------------------------------------------------------------------------
|
|
|
|
# Production builds: https://github.com/ultralytics/ultralytics/blob/main/.github/workflows/docker.yml
|
|
# Example (build): t=ultralytics/ultralytics:latest-cpu && docker build -f docker/Dockerfile-cpu -t $t .
|
|
# Example (push): docker push $t
|
|
# Example (pull): t=ultralytics/ultralytics:latest-cpu && docker pull $t
|
|
# Example (run): docker run -it --ipc=host $t
|
|
# Example (run-with-volume): docker run -it --ipc=host -v "$PWD/shared/datasets:/datasets" $t
|