From d6cd18729f03eb3f261409e308c967840ba65fe0 Mon Sep 17 00:00:00 2001 From: amandilaras Date: Tue, 20 Feb 2024 17:47:29 +0200 Subject: [PATCH] expose port on run stage --- annotation-service/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/annotation-service/Dockerfile b/annotation-service/Dockerfile index 7e23abfed..1e0a28fda 100644 --- a/annotation-service/Dockerfile +++ b/annotation-service/Dockerfile @@ -29,6 +29,8 @@ FROM eclipse-temurin:21-jre-ubi9-minimal ARG PROFILE ARG REVISION +ENV SERVER_PORT=8080 +EXPOSE ${SERVER_PORT} COPY --from=build-stage /build/annotation-web/target/annotation-web-${REVISION}.jar /app/annotation-web.jar