diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,10 @@ -FROM onap-repo/openjdk:17 -ARG JAR_FILE=/app/build/libs/app-*.jar -COPY ${JAR_FILE} app.jar +FROM eclipse-temurin:17 as builder +COPY . ./preferences +WORKDIR /preferences +RUN ./gradlew assemble + +FROM eclipse-temurin:17-jre-alpine +ARG JAR_FILE=/preferences/app/build/libs/app-*.jar +COPY --from=builder ${JAR_FILE} app.jar EXPOSE 9080 ENTRYPOINT [ "java","-jar","app.jar" ]
\ No newline at end of file |