develop #22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue