Skip to content

Add .git to .dockerignore#8815

Merged
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1
Aug 1, 2022
Merged

Add .git to .dockerignore#8815
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented Aug 1, 2022

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved Docker build context by including .git directory.

📊 Key Changes

  • Modified .dockerignore to stop ignoring the .git directory.

🎯 Purpose & Impact

  • Purpose: This change allows the .git directory to be included in the Docker build context, enabling operations that may depend on Git metadata or history.
  • Impact: Users who build Docker images from this repository may notice a slight increase in the build context size, potentially leading to marginally longer image build times. On the positive side, this enables more advanced use-cases where Git information within the Docker container is necessary, such as versioning or continuous integration tasks.

@glenn-jocher glenn-jocher self-assigned this Aug 1, 2022
@glenn-jocher glenn-jocher merged commit 7b9cc32 into master Aug 1, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch August 1, 2022 01:33
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