Le Dockerfile défini maintenant la version de CRE correctement
continuous-integration/drone/push Build is passing Details

This commit is contained in:
FyloZ 2021-08-06 21:20:55 -04:00
parent f022e71fd7
commit 59a8e98e40
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 3 additions and 3 deletions

View File

@ -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