diff --git a/pic-sure-auth-services/Dockerfile b/pic-sure-auth-services/Dockerfile index a13eb8a2..b57dec9d 100644 --- a/pic-sure-auth-services/Dockerfile +++ b/pic-sure-auth-services/Dockerfile @@ -3,15 +3,15 @@ FROM maven:3.9.6-amazoncorretto-21 as build # Copy the source code into the container COPY ./ /app -# Pull in global maven settings -COPY ./.m2/*.xml /root/.m2/ - # Change the working directory WORKDIR /app # Build the jar RUN mvn clean install -DskipTests +# Pull in global maven settings +COPY ./.m2/*.xml /root/.m2/ + FROM amazoncorretto:21.0.1-alpine3.18 # Copy jar and access token from maven build