From fbde35ad59a76a2260bc5ecb26f688b2af6ded28 Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Tue, 12 Nov 2024 12:14:38 +0100 Subject: [PATCH] feat: lower docker volume of batch images --- docker/app-batch.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/app-batch.Dockerfile b/docker/app-batch.Dockerfile index 4c839b56..a9db9e55 100644 --- a/docker/app-batch.Dockerfile +++ b/docker/app-batch.Dockerfile @@ -53,8 +53,12 @@ COPY . /usr/src/app/ # Run a conditional script for the maven build RUN chmod +x usr/src/app/docker/script.sh && usr/src/app/docker/script.sh -# +# get jre light image +FROM eclipse-temurin:17-jre-alpine + ENV ARC_LOGLEVEL=$LOG_LEVEL +COPY --from=build usr/src/app/arc-batch/target/ArcMain.jar usr/src/app/arc-batch/target/ArcMain.jar + ## execute batch ## ENTRYPOINT ["java","-jar","usr/src/app/arc-batch/target/ArcMain.jar"]