From 3a8a2852f18c1fc29563716eae2b787de9a3774f Mon Sep 17 00:00:00 2001 From: Chinmoy Chakraborty Date: Tue, 30 May 2023 13:42:28 +0530 Subject: [PATCH] Added memory cap flag to JVM --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0c86f4f..76283a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ WORKDIR $HOME COPY --from=build $HOME/target/*.jar app.jar EXPOSE 8080 -ENTRYPOINT ["java","-jar","app.jar"] +ENTRYPOINT ["java","-Xmx250m","-jar","app.jar"]