From 8c4e48362b18f8fb270637a722b787ce0b70d87a Mon Sep 17 00:00:00 2001 From: Tomas Kacur Date: Wed, 2 Jan 2019 17:04:56 +0100 Subject: [PATCH] dont halt on sigterm by reducing use of OS signals by JVM(-Xrs option) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 83c6cbf..228eb8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ ADD . /code WORKDIR /code RUN boot build RUN chmod a+r target/ex-fb-graph-api-1.0.jar -CMD ["java", "-jar", "-Xmx1g","target/ex-fb-graph-api-1.0.jar", "-d" , "/data/"] +CMD ["java", "-jar", "-Xmx1g", "-Xrs", "target/ex-fb-graph-api-1.0.jar", "-d", "/data/"]