github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/webhook/BUILD (about)

     1  load("//images:defs.bzl", "docker_image")
     2  load("//tools:defs.bzl", "go_binary", "pkg_tar")
     3  
     4  package(licenses = ["notice"])
     5  
     6  docker_image(
     7      name = "webhook_image",
     8      data = ":files",
     9      statements = ['ENTRYPOINT ["/webhook"]'],
    10  )
    11  
    12  # files is the full file system of the webhook container. It is simply:
    13  # /
    14  # └─ webhook
    15  pkg_tar(
    16      name = "files",
    17      srcs = [":webhook"],
    18      extension = "tgz",
    19      strip_prefix = "/third_party/gvisor/webhook",
    20  )
    21  
    22  go_binary(
    23      name = "webhook",
    24      srcs = ["main.go"],
    25      pure = "on",
    26      static = "on",
    27      deps = ["//webhook/pkg/cli"],
    28  )