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
This commit is contained in:
Panayiotis Savva
2020-10-21 18:38:58 +03:00
committed by GitHub
parent 5c4a51601f
commit cb9769f0c3

View File

@@ -5,6 +5,7 @@ COPY pom.xml .
RUN mvn -ntp dependency:go-offline RUN mvn -ntp dependency:go-offline
COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/ COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/
RUN set MAVEN_OPTS="-Xmx1024m"
RUN mvn clean install -DskipTests RUN mvn clean install -DskipTests
FROM tomcat:9.0.38-jdk11-openjdk-slim-buster FROM tomcat:9.0.38-jdk11-openjdk-slim-buster