bazel_dep(name = "rules_go", version = "0.47.0", repo_name = "io_bazel_rules_go") bazel_dep(name = "gazelle", version = "0.36.0", repo_name = "bazel_gazelle") bazel_dep(name = "rules_oci", version = "1.7.5") bazel_dep(name = "rules_pkg", version = "0.9.1") # This is needed so that rules_oci supports arm64 # See: https://github.com/bazel-contrib/rules_oci/issues/253 git_override( module_name = "rules_oci", commit = "7700f626ad3439a51e9735e0fb1c2f69734e8a28", remote = "https://github.com/archen/rules_oci.git", ) oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") oci.pull( name = "distroless_base", digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86", image = "gcr.io/distroless/base", platforms = [ "linux/amd64", "linux/arm64", ], ) use_repo(oci, "distroless_base")