From 24544ef96b7cfb0c5c109eb762338c4c45a24bab Mon Sep 17 00:00:00 2001 From: Darshan Shah <35203211+darshanshah34@users.noreply.github.com> Date: Thu, 6 Jul 2023 11:39:35 -0400 Subject: [PATCH] Update Dockerfile added Java debug options --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 95573f21..f26cc8ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM registry.access.redhat.com/ubi8/openjdk-11 COPY target/*.jar /opt/spring-petclinic.jar +ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,address=8080,server=y,suspend=n CMD java -jar /opt/spring-petclinic.jar EXPOSE 8080