From 18dadd91ed61452316eb0e20782faac89c0c700b Mon Sep 17 00:00:00 2001 From: Chinmoy Chakraborty Date: Tue, 30 May 2023 13:40:41 +0530 Subject: [PATCH] Add memory heap cap on 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"]