Skip to content

Commit 09e503c

Browse files
committed
feat: respect the root folder configured when looking for ignore files
See the design chapter for more details.
1 parent a51235f commit 09e503c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

repo2docker/buildpacks/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ def _filter_tar(tarinfo):
612612
exclude = []
613613

614614
for ignore_file_name in [".dockerignore", ".containerignore"]:
615+
ignore_file_name = self.binder_path(ignore_file_name)
615616
if os.path.exists(ignore_file_name):
616617
with open(ignore_file_name) as ignore_file:
617618
cleaned_lines = [

0 commit comments

Comments
 (0)