# 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