From 45ec4b371fd48bf5068e2cd546b5d5dae7e8e4cb Mon Sep 17 00:00:00 2001 From: Paulo Veiga Date: Thu, 27 Jan 2022 19:56:41 +0000 Subject: [PATCH] Fix compilation --- distribution/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/distribution/Dockerfile b/distribution/Dockerfile index 7d86469e..bac83127 100644 --- a/distribution/Dockerfile +++ b/distribution/Dockerfile @@ -7,10 +7,11 @@ LABEL maintainer="Paulo Gustavo Veiga " # Build variables ... ARG WEBAPP_TARGET_DIR="/usr/local/tomcat/webapps/ROOT" +ARG DB_BASE_DIR="/var/lib/wisemapping" # Defautl ENV configurations ... ENV JAVA_OPTS="-XX:+PrintFlagsFinal -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80" -ENV database.base.url="/var/lib/wisemapping" +ENV database.base.url=${DB_BASE_DIR} # Copy wisemapping distribution ... COPY wisemapping.war /tmp @@ -22,5 +23,5 @@ RUN rm /tmp/wisemapping.war RUN cp ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j-stdout.properties ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j.properties # Copy default HSQL DB for testing ... -RUN mkdir -p ${database.base.url}/db -COPY db/ ${database.base.url}/db +RUN mkdir -p ${DB_BASE_DIR}/db +COPY db/ ${DB_BASE_DIR}/db