expose port on run stage

This commit is contained in:
Alexandros Mandilaras 2024-02-20 17:47:29 +02:00
parent be672aab57
commit d6cd18729f
1 changed files with 2 additions and 0 deletions

View File

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