Skip to content

Commit

Permalink
feat: respect the root folder configured when looking for ignore files
Browse files Browse the repository at this point in the history
See the design chapter for more details.
  • Loading branch information
sgaist committed Jan 19, 2024
1 parent a51235f commit 09e503c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repo2docker/buildpacks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ def _filter_tar(tarinfo):
exclude = []

for ignore_file_name in [".dockerignore", ".containerignore"]:
ignore_file_name = self.binder_path(ignore_file_name)
if os.path.exists(ignore_file_name):
with open(ignore_file_name) as ignore_file:
cleaned_lines = [
Expand Down

0 comments on commit 09e503c

Please sign in to comment.