我在我的文件中定义了一个基本py_image
规则:BUILD
load("@io_bazel_rules_docker//python3:image.bzl", "py3_image")
py3_image(
name = "app_image",
base = ":base_image",
srcs = ["serve.py"],
deps = [
"@mi_proto//:proto",
]
)
如何使这条规则的结果在 Docker 中可用?我想将它放入docker images
或通过docker run
.