feat: respect the root folder configured when looking for ignore files

See the design chapter for more details.
pull/1205/head
Samuel Gaist 2024-01-19 09:36:52 +01:00
rodzic a51235f9a5
commit 09e503c4e6
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -612,6 +612,7 @@ class BuildPack:
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 = [