From cb9769f0c3d4224dd0e92cc0ae91af56ae95784a Mon Sep 17 00:00:00 2001 From: Panayiotis Savva Date: Wed, 21 Oct 2020 18:38:58 +0300 Subject: [PATCH] Docker buid - heap memory error (#155) When building in Docker, we sometimes face a heap memory running out when compiling the WAR file. Setting the MAVEN_OPTS="-Xmx1024m" resolves this --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index a6699d5..16ce405 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ COPY pom.xml . RUN mvn -ntp dependency:go-offline COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/ +RUN set MAVEN_OPTS="-Xmx1024m" RUN mvn clean install -DskipTests FROM tomcat:9.0.38-jdk11-openjdk-slim-buster