Skip to main content
Version: 1.4.x

Images containing Java applications

Users are typically migrating from java_image or war_image in rules_docker.

You can request the *_deploy.jar output of a java_binary target, which is a single, self-contained launcher that includes all the dependencies. This can then be added to a container with a base image such as and then executed directly, for example with

name = "java_image",
base = "@distroless_java",
entrypoint = [


A simple example using a deploy.jar