We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc70092 commit 1bb3cbaCopy full SHA for 1bb3cba
repo2docker/buildpacks/base.py
@@ -11,7 +11,6 @@
11
12
import escapism
13
import jinja2
14
-
15
from docker.utils.build import exclude_paths
16
17
# Only use syntax features supported by Docker 17.09
@@ -614,7 +613,7 @@ def _filter_tar(tarinfo):
614
613
615
for ignore_file_name in [".dockerignore", ".containerignore"]:
616
if os.path.exists(ignore_file_name):
617
- with open(ignore_file_name, "r") as ignore_file:
+ with open(ignore_file_name) as ignore_file:
618
cleaned_lines = [
619
line.strip() for line in ignore_file.read().splitlines()
620
]
@@ -626,9 +625,6 @@ def _filter_tar(tarinfo):
626
625
627
)
628
629
- if not exclude:
630
- exclude = ["**/.git"]
631
632
files_to_add = exclude_paths(".", exclude)
633
634
if files_to_add:
0 commit comments