Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin Docker-cpu FROM ubuntu:20.04 #7677

Merged
merged 1 commit into from
May 3, 2022
Merged

Pin Docker-cpu FROM ubuntu:20.04 #7677

merged 1 commit into from
May 3, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented May 3, 2022

Pin FROM ubuntu:20.04

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Update and simplify the YOLOv5 CPU Dockerfile.

πŸ“Š Key Changes

  • 🚒 Switched the base Docker image from ubuntu:latest to ubuntu:20.04.
  • βœ‚οΈ Removed unnecessary steps for installing Python 3.9 since Ubuntu 20.04 comes with Python 3.8 by default.
  • πŸ”§ Changed python commands from python3.9 to the default python3.
  • 🧹 Cleaned up the installation process, removing more complex setup for a simpler one.

🎯 Purpose & Impact

  • πŸ”„ Ensures compatibility by using a more stable version of Ubuntu rather than the latest, which can vary over time.
  • βš™οΈ Simplifies the Docker image by removing redundant installation steps for Python 3.9, as the version included with Ubuntu 20.04 is sufficient.
  • πŸ‘ Improves the maintainability of the Dockerfile by using default python aliases, which reduces confusion and potential errors.
  • πŸ’¨ May result in faster build times and reduced complexity for users setting up the YOLOv5 environment on CPU-based systems.

@glenn-jocher glenn-jocher changed the title Update Docker-cpu Update Docker-cpu FROM ubuntu:20.04 May 3, 2022
@glenn-jocher glenn-jocher changed the title Update Docker-cpu FROM ubuntu:20.04 Pin Docker-cpu FROM ubuntu:20.04 May 3, 2022
@glenn-jocher glenn-jocher self-assigned this May 3, 2022
@glenn-jocher glenn-jocher merged commit e305aba into master May 3, 2022
@glenn-jocher glenn-jocher deleted the docker-cpu branch May 3, 2022 06:27
tdhooghe pushed a commit to tdhooghe/yolov5 that referenced this pull request Jun 10, 2022
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant