add profile env

This commit is contained in:
Alexandros Mandilaras 2024-01-18 17:11:16 +02:00
parent 8130d22716
commit e2bf6eaea6
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ RUN rm -f /build/web/src/main/resources/config/*-dev.yml
WORKDIR /build/
COPY . .
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} dependency:go-offline
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} dependency:go-offline
# Build project
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} clean package
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} clean package
######################################## Run Stage ########################################
FROM eclipse-temurin:21-jre-alpine