generate
This commit is contained in:
+2
-2
@@ -25,5 +25,5 @@ RUN chown appuser:appgroup app.jar
|
||||
# Switch to the non-root user
|
||||
USER appuser
|
||||
|
||||
# Run the jar file with JVM flags for heap dump generation on OutOfMemoryError
|
||||
ENTRYPOINT ["java", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/dumps/heap.hprof", "-jar", "app.jar"]
|
||||
# Run the jar file with JVM flags for heap dump generation on OutOfMemoryError and headless mode
|
||||
ENTRYPOINT ["java", "-Djava.awt.headless=true", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/dumps/heap.hprof", "-jar", "app.jar"]
|
||||
Reference in New Issue
Block a user