Skip to content

Commit

Permalink
fix: ensure the path in the tar matches entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Mar 20, 2024
1 parent 01b8f33 commit 69dcfa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/container.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ def multiarch_go_image(name, binary):
name = tar_target,
srcs = [binary],
include_runfiles = True,
package_dir = "app",
)

oci_image(
name = image_target,
base = "@distroless_static",
entrypoint = ["/app/{}".format(binary)],
entrypoint = ["/app/{}".format(binary.removeprefix(":"))],
tars = [tar_target],
)

Expand Down

0 comments on commit 69dcfa2

Please sign in to comment.