gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/webhook/BUILD (about) 1 load("//images:defs.bzl", "docker_image") 2 load("//tools:defs.bzl", "go_binary", "pkg_tar") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 docker_image( 10 name = "image", 11 data = ":files", 12 statements = ['ENTRYPOINT ["/webhook"]'], 13 tags = [ 14 "local", 15 "manual", 16 "no-sandbox", 17 ], 18 ) 19 20 # files is the full file system of the webhook container. It is simply: 21 # / 22 # └─ webhook 23 pkg_tar( 24 name = "files", 25 srcs = [":webhook"], 26 extension = "tgz", 27 strip_prefix = "/webhook", 28 ) 29 30 go_binary( 31 name = "webhook", 32 srcs = ["main.go"], 33 pure = "on", 34 static = "on", 35 deps = ["//webhook/pkg/cli"], 36 )