From 5cb2232b66b636ae7daf16e5f7a791606a190549 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Tue, 1 Oct 2024 00:19:28 +0200 Subject: [PATCH] fix dockerfile Signed-off-by: Peter Siegmund --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73b0f4e..ee0c9ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage that builds the application, a prerequisite for the running stage -FROM eclipse-temurin:21-jdk-jammy as build +FROM eclipse-temurin:21-jdk-jammy AS build ARG SERVICE_ROOT @@ -30,4 +30,4 @@ USER app COPY --chown=app --from=build /usr/src/app/target/*.jar /usr/app/app.jar EXPOSE 8080 -CMD java -jar /usr/app/app.jar +CMD ["java", "-jar", "/usr/app/app.jar"]