From 59a8e98e40e95bc0043416cc75358f7b2206249a Mon Sep 17 00:00:00 2001 From: FyloZ Date: Fri, 6 Aug 2021 21:20:55 -0400 Subject: [PATCH] =?UTF-8?q?Le=20Dockerfile=20d=C3=A9fini=20maintenant=20la?= =?UTF-8?q?=20version=20de=20CRE=20correctement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66b5bba..adf4abc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ ARG GRADLE_VERSION=7.1 ARG JAVA_VERSION=11 -ARG CRE_VERSION=dev FROM gradle:$GRADLE_VERSION-jdk$JAVA_VERSION AS build WORKDIR /usr/src - COPY . . + +ARG CRE_VERSION=dev RUN gradle bootJar -Pversion=$CRE_VERSION FROM alpine:latest @@ -15,7 +15,7 @@ ARG JAVA_VERSION RUN apk add --no-cache openjdk$JAVA_VERSION ARG CRE_VERSION -COPY --from=build /usr/src/build/libs/ColorRecipesExplorer.jar ColorRecipesExplorer.jar +COPY --from=build /usr/src/build/libs/ColorRecipesExplorer-$CRE_VERSION.jar ColorRecipesExplorer.jar ARG CRE_PORT=9090 EXPOSE $CRE_PORT