Docker COPY with checkout fetch-depth: 0
#12066
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π€ Generated by Copilot at 8a54701
Summary
π¦ππ§
This pull request modifies the Docker-related files and workflows to copy the current state of the repository to the Docker images, instead of cloning the latest version from GitHub. This allows the Docker images to access the full git history and to match the exact codebase of the repository.
Walkthrough
[link](https://github.com/ultralytics/yolov5/pull/12066/files?diff=unified&w=0#diff-140b4a4c490ff4b325ebe28803157cc59f3b3894af1a98d79ca990bda7877448L27-R27)
,[link](https://github.com/ultralytics/yolov5/pull/12066/files?diff=unified&w=0#diff-d98329d5cefd0fb8ae8f592080ecfdbe8e4893a909df08623bf372f53508107eL30-R30)
,[link](https://github.com/ultralytics/yolov5/pull/12066/files?diff=unified&w=0#diff-153cb5313e95fd4c232ca740bff18b6f1b2a9864cb3558125996aded94177f54L33-R33)
). This ensures consistency and accuracy of the Docker images with the repository state at the time of the workflow run. The files affected areutils/docker/Dockerfile
,utils/docker/Dockerfile-arm64
, andutils/docker/Dockerfile-cpu
.π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
Optimization of Docker builds for the YOLOv5 project by including the full git history.
π Key Changes
fetch-depth: 0
).π― Purpose & Impact
.git
directory that could occur when cloning.