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"