From 4a6673ba36b33ac475a2cecb1607e0138d1fd294 Mon Sep 17 00:00:00 2001 From: ag060 Date: Thu, 16 Jan 2025 12:52:57 +0530 Subject: [PATCH] updated dockerfile for threat detection client --- apps/threat-detection/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/threat-detection/Dockerfile b/apps/threat-detection/Dockerfile index 8498c6d7fc..b4e935cc38 100644 --- a/apps/threat-detection/Dockerfile +++ b/apps/threat-detection/Dockerfile @@ -1,9 +1,4 @@ FROM openjdk - WORKDIR /app -COPY ./target/api-threat-detection-1.0-SNAPSHOT-jar-with-dependencies.jar /app/api-threat-detection-1.0-SNAPSHOT-jar-with-dependencies.jar -COPY start.sh /app/start.sh - -RUN chmod +x /app/start.sh - -CMD ["/app/start.sh"] +COPY ./target/threat-detection-1.0-SNAPSHOT-jar-with-dependencies.jar /app/threat-detection-1.0-SNAPSHOT-jar-with-dependencies.jar +CMD "java" "-XX:+ExitOnOutOfMemoryError" "-jar" "/app/threat-detection-1.0-SNAPSHOT-jar-with-dependencies.jar"