From b41a31d33267bf7e8e68cf7430a72236837c0cd0 Mon Sep 17 00:00:00 2001 From: Chinmoy Chakraborty Date: Tue, 30 May 2023 13:44:03 +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 bcb91b3..3090fc1 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"]