Chapter 2. Deploying OpenJDK applications in containers

You can deploy 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 OpenJDK 8 UBI8 image:

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