From a0aa7acec10648d6e49c0804bcc453124bc211e1 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 20 May 2024 17:05:10 +0530 Subject: [PATCH] Update Dockerfile updated --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67aaab310..4e27a23b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,5 +16,5 @@ RUN dpkg -i wkhtmltopdf.deb COPY sb-cb-ext-0.0.1-SNAPSHOT.jar /opt/ #HEALTHCHECK --interval=30s --timeout=30s CMD curl --fail http://localhost:7001/actuator/health || exit 1 -CMD ["java", "-XX:+PrintFlagsFinal", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-jar", "/opt/sb-cb-ext-0.0.1-SNAPSHOT.jar"] +CMD ["/bin/bash", "-c", "java -XX:+PrintFlagsFinal $JAVA_OPTIONS -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -jar /opt/sb-cb-ext-0.0.1-SNAPSHOT.jar"]