Skip to content

Commit

Permalink
Force label resolution of the distroless container image
Browse files Browse the repository at this point in the history
By adding the call to Label(), we ensure that the label is resolved from
within the context of the bb-storage repository. This ensures that any
repositories depending on bb-storage will automatically pick it up.
  • Loading branch information
EdSchouten committed Mar 29, 2024
1 parent 69eebfe commit fb760eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/container.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def multiarch_go_image(name, binary):

oci_image(
name = image_target,
base = "@distroless_static",
base = Label("@distroless_static"),
entrypoint = ["/app/{}".format(native.package_relative_label(binary).name)],
tars = [tar_target],
# Don't build un-transitioned images, as the default target architecture might be unsupported
Expand Down

0 comments on commit fb760eb

Please sign in to comment.