Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
758 B
2
Indexable
Never
# tools/docker/BUILD
load("@io_bazel_rules_docker//docker/util:run.bzl", _container_run_and_commit_layer = "container_run_and_commit_layer")

_container_run_and_commit_layer(
    name = "ffmpeg",
    commands = [
        "apt-get update",
        "apt-get install -y ffmpeg",
        "apt-get clean",
        "rm -rf /var/lib/apt/lists/*",
    ],
    docker_run_flags = [
        "--network=host",
    ],
    image = "@vertis_openjdk17//image",
    tags = [
        "manual",
        "no-sandbox",
    ],
    visibility = ["//visibility:public"],
)


# service/BUILD
scala_image(
    name = "image",
    binary = ":scheduler",
    layers = [
        "//tools/docker:ffmpeg",
    ],
    service = "service-name",
    visibility = ["//visibility:private"],
)

Leave a Comment