Chapter 2. Deploying Red Hat build of OpenJDK applications in containers


You can deploy Red Hat build of OpenJDK applications in containers and have them run when the container is loaded.

Procedure

  • Copy the application JAR to the /deployments directory in the image JAR file.

    For example, the following shows a brief Dockerfile that adds an application called testubi.jar to the Red Hat build of OpenJDK 8 UBI8 image:

    FROM registry.access.redhat.com/ubi8/openjdk-8
    
    COPY target/testubi.jar /deployments/testubi.jar
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top