Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile-cpu 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. # Builds ultralytics/ultralytics:latest-cpu image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
  3. # Lightweight CPU image optimized for inference (extends latest-python)
  4. # Build from Ultralytics Python image
  5. FROM ultralytics/ultralytics:latest-python
  6. # Set default command to bash
  7. CMD ["/bin/bash"]
  8. # Usage Examples -------------------------------------------------------------------------------------------------------
  9. # Build and Push
  10. # t=ultralytics/ultralytics:latest-cpu && sudo docker build -f docker/Dockerfile-cpu -t $t . && sudo docker push $t
  11. # Run
  12. # t=ultralytics/ultralytics:latest-cpu && sudo docker run -it --ipc=host --name NAME $t
  13. # Pull and Run
  14. # t=ultralytics/ultralytics:latest-cpu && sudo docker pull $t && sudo docker run -it --ipc=host --name NAME $t
  15. # Pull and Run with local volume mounted
  16. # t=ultralytics/ultralytics:latest-cpu && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/shared/datasets:/datasets $t
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...