Skip to content

Commit b97ba72

Browse files
lshamisnlopezgi
authored andcommitted
Fix pip in py3_image (#1244)
1 parent 582ea1a commit b97ba72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python3/image.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,9 @@ def py3_image(name, base = None, deps = [], layers = [], **kwargs):
118118
args = kwargs.get("args"),
119119
data = kwargs.get("data"),
120120
testonly = kwargs.get("testonly"),
121+
# The targets of the symlinks in the symlink layers are relative to the
122+
# workspace directory under the app directory. Thus, create an empty
123+
# workspace directory to ensure the symlinks are valid. See
124+
# https://github.com/bazelbuild/rules_docker/issues/161 for details.
125+
create_empty_workspace_dir = True,
121126
)

0 commit comments

Comments
 (0)