From d14fb4ede74f478bd9ea0f975b2bcc28ce37b2dc Mon Sep 17 00:00:00 2001 From: Matyrobbrt Date: Sat, 24 Aug 2024 15:02:37 +0300 Subject: [PATCH] Update Dockerfile and set max ram percentage --- .github/workflows/deploy_docs.yml | 2 ++ Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 6bd4161..36dae22 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -4,6 +4,8 @@ on: push: branches: - main + paths: + - 'docs/**' permissions: contents: read diff --git a/Dockerfile b/Dockerfile index 56096f7..99545cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,4 @@ FROM eclipse-temurin:21 COPY build/libs/camelot-all.jar /camelot.jar VOLUME ["/home/camelot"] WORKDIR /home/camelot -RUN cd /home/camelot -ENTRYPOINT ["java", "--enable-preview", "-jar", "/camelot.jar"] +ENTRYPOINT ["java", "-XX:MaxRAMPercentage=90", "--enable-preview", "-jar", "/camelot.jar"]