Skip to content

Commit 673a965

Browse files
committed
WIP: py interpreter
1 parent d459d8d commit 673a965

File tree

7 files changed

+25
-1
lines changed

7 files changed

+25
-1
lines changed

oci_python_image/MODULE.bazel

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ oci.pull(
2727
image = "python",
2828
)
2929

30-
use_repo(oci, "distroless_python")
30+
oci.pull(
31+
name = "distroless_base",
32+
digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86",
33+
image = "gcr.io/distroless/base",
34+
platforms = [
35+
"linux/amd64",
36+
"linux/arm64",
37+
],
38+
)
39+
40+
use_repo(oci, "distroless_base", "distroless_python")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pkg_tar(
2+
name = "interpreter",
3+
srcs = ["@rules_python//python:current_py_toolchain"],
4+
extension = "tar.gz",
5+
package_dir = "/opt/python",
6+
strip_prefix = ".",
7+
)
8+
9+
oci_image(
10+
name = "image",
11+
base = "@distroless_base",
12+
entrypoint = ["/opt/hello_world/hello_world_bin"],
13+
tars = [":hello_world_layer"],
14+
)

0 commit comments

Comments
 (0)