Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions nodejs/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -136,22 +136,14 @@ def nodejs_image(
**kwargs
)

nodejs_layers = [
# Put the Node binary into its own layers.
"@nodejs//:node",
"@nodejs//:node_files",
"@nodejs//:bin/node_repo_args.sh",
]

all_layers = nodejs_layers + layers

visibility = kwargs.get("visibility", None)
tags = kwargs.get("tags", None)

# TODO(mattmoor): Consider making the directory into which the app
# is placed configurable.
base = base or DEFAULT_BASE
for index, dep in enumerate(all_layers):
for index, dep in enumerate(layers):
this_name = "%s.%d" % (name, index)
_dep_layer(name = this_name, base = base, dep = dep, binary = binary, testonly = kwargs.get("testonly"), visibility = visibility, tags = tags)
base = this_name
Expand Down