From 213bda7cfcc2d5f6f150b8781093b315a17a43c2 Mon Sep 17 00:00:00 2001 From: Sean McIlvenna Date: Mon, 29 Jun 2020 15:07:46 -0700 Subject: [PATCH] Updating Dockerfile to use context code instead of re-cloning the hapi-fhir-jpaserver-starter project. Still re-builds the base hapi libraries, though. --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab39bef..18220bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,18 +2,16 @@ FROM hapiproject/hapi:base as build-hapi ARG HAPI_FHIR_URL=https://github.com/jamesagnew/hapi-fhir/ ARG HAPI_FHIR_BRANCH=master -ARG HAPI_FHIR_STARTER_URL=https://github.com/hapifhir/hapi-fhir-jpaserver-starter/ -ARG HAPI_FHIR_STARTER_BRANCH=master RUN git clone --branch ${HAPI_FHIR_BRANCH} ${HAPI_FHIR_URL} WORKDIR /tmp/hapi-fhir/ RUN /tmp/apache-maven-3.6.2/bin/mvn dependency:resolve RUN /tmp/apache-maven-3.6.2/bin/mvn install -DskipTests -WORKDIR /tmp -RUN git clone --branch ${HAPI_FHIR_STARTER_BRANCH} ${HAPI_FHIR_STARTER_URL} - WORKDIR /tmp/hapi-fhir-jpaserver-starter + +COPY . . + RUN /tmp/apache-maven-3.6.2/bin/mvn clean install -DskipTests FROM tomcat:9-jre11