diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-05-15 07:35:26 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-05-15 07:35:26 +0000 |
commit | e932b0f9b8aff49d9bfd78440bc693397b00c16c (patch) | |
tree | ef497f941c7316339811e90ec7e0519953dd3e01 /Dockerfile | |
parent | cdc670c5a1c25b0b0ab460b1711a0a42f270b1f3 (diff) |
Switch bff docker base image
Issue-ID: PORTALNG-1
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I7afde9193743e42851e698a1f826883e2c8161d7
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -1,23 +1,11 @@ -FROM openjdk:17 as builder +FROM eclipse-temurin:17 as builder COPY . ./portalbff WORKDIR /portalbff -# assemble does not run tests (as opposed to build) -RUN ./gradlew assemble +RUN ./gradlew build -# Run locally (docker build --target=prod -t <tag> .) -FROM openjdk:17 as prod +FROM eclipse-temurin:17-jre-alpine ARG JAR_FILE=/portalbff/app/build/libs/app.jar COPY --from=builder ${JAR_FILE} app.jar EXPOSE 9080 -ENTRYPOINT [ "java","-jar","app.jar" ] - -# Run in pipeline (docker build --target=pipeline -t <tag> .) -FROM openjdk:17 as pipeline -WORKDIR /app - -ARG JAR_FILE=app/build/libs/app.jar -COPY ${JAR_FILE} app.jar - -ENTRYPOINT [ "java","-jar","app.jar" ] -EXPOSE 9080
\ No newline at end of file +ENTRYPOINT [ "java","-jar","app.jar" ]
\ No newline at end of file |