Repository navigation
fix: make .dockerignore pyc/env/venv patterns match nested paths - #10181
sriramveeraghanta merged 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Hi @pratapalakshmi, whenever you have some free time, could you please review this PR? It's a small change. Happy to make any adjustments needed. Thanks! |
|
Hi @prateekshourya29, thanks for merging my earlier PRs. Whenever you get a chance, could you take a look at this one too? Happy to make any changes needed. |
Description
In
.dockerignore, patterns without a**/prefix only match at the root of the build context (unlike.gitignore).*.pyc,.env,venvand.venvtherefore never excluded nested files such asapps/api/.env,apps/api/**/*.pycorapps/api/.venv, so they were sent to the Docker daemon and could end up in images built from the repo root.This prefixes those four patterns with
**/so they match at any depth.Type of Change
Test Scenarios
Checked that no Dockerfile in the repo copies a nested
.env,venvor.pycpath. Did not build the images.References
Closes #7907
Summary by CodeRabbit