Migrate Kubemark to distroless

This commit is contained in:
notpad
2019-11-16 15:31:57 +08:00
parent e0529008d0
commit dcf80e31ac
7 changed files with 43 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ load("@io_bazel_rules_docker//container:container.bzl", "container_image", "cont
container_image(
name = "image",
base = "@debian_jessie//image",
base = "@distroless_base//image",
entrypoint = ["/kubemark"],
files = ["//cmd/kubemark"],
stamp = True,

View File

@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# The line below points to debian:jessie as of 2019-10-23. The SHA should be
# kept in sycn with debian_jessie definition in the WORKSPACE file.
FROM debian@sha256:e25703ee6ab5b2fac31510323d959cdae31eebdf48e88891c549e55b25ad7e94
# The line below points to distroless/base as of 2019-11-15. The SHA should be
# kept in sycn with distroless_base definition in the WORKSPACE file.
FROM gcr.io/distroless/base@sha256:7fa7445dfbebae4f4b7ab0e6ef99276e96075ae42584af6286ba080750d6dfe5
COPY kubemark /kubemark