이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 2. Deploying Red Hat build of OpenJDK application 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
JARto the/deploymentsdirectory in the imageJARfile.For example, the following shows a brief Dockerfile that adds an application called
testubi.jarto the Red Hat build of OpenJDK 17 UBI8 image:FROM registry.access.redhat.com/ubi8/openjdk-17 COPY target/testubi.jar /deployments/testubi.jar
FROM registry.access.redhat.com/ubi8/openjdk-17 COPY target/testubi.jar /deployments/testubi.jarCopy to Clipboard Copied! Toggle word wrap Toggle overflow