diff --git a/docker/pic-sure-hpds-etl/Dockerfile b/docker/pic-sure-hpds-etl/Dockerfile index 217f3cd5..709c9e0a 100644 --- a/docker/pic-sure-hpds-etl/Dockerfile +++ b/docker/pic-sure-hpds-etl/Dockerfile @@ -1,10 +1,9 @@ -FROM hms-dbmi/pic-sure-api:release_083e420 AS dependencies - FROM maven:3.9.4-amazoncorretto-21 AS build WORKDIR /app +COPY /root/.m2 /root/.m2 + COPY . . -COPY --from=dependencies /root/.m2 /root/.m2 RUN mvn clean install -DskipTests diff --git a/docker/pic-sure-hpds/Dockerfile b/docker/pic-sure-hpds/Dockerfile index 566f96d9..0b79350c 100644 --- a/docker/pic-sure-hpds/Dockerfile +++ b/docker/pic-sure-hpds/Dockerfile @@ -1,10 +1,10 @@ -FROM hms-dbmi/pic-sure-api:release_083e420 AS dependencies - FROM maven:3.9.4-amazoncorretto-21 AS build + WORKDIR /app +COPY /root/.m2 /root/.m2 + COPY . . -COPY --from=dependencies /root/.m2 /root/.m2 RUN mvn clean install -DskipTests