From db5b7a60a036969b4c46413c7e187d6e54565eb9 Mon Sep 17 00:00:00 2001 From: Josef Andersson Date: Wed, 6 Dec 2023 13:50:40 +0100 Subject: [PATCH] ci: fix chainguard image base Signed-off-by: Josef Andersson --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec504c0..629e7ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,18 +11,17 @@ RUN ./mvnw clean package spring-boot:repackage # Note: The default non root chainguard user is 65532 -FROM cgr.dev/chainguard/jdk:openjdk-jre-11-20221109 +FROM cgr.dev/chainguard/jdk:latest USER root -RUN mkdir -p /opt/.logs \ - && mkdir -p /apidef -RUN chown -R 65532:65532 /opt/ +RUN mkdir -p /app/.logs \ + && mkdir -p /apidef +RUN chown -R 65532:65532 /app/ USER 65532 -COPY --from=build /build/target/dcat-ap-processor-0.0.2-SNAPSHOT.jar /opt/app.jar +COPY --from=build /build/target/dcat-ap-processor-0.0.2-SNAPSHOT.jar /app/app.jar ENV JDK_JAVA_OPTIONS -Duser.language=sv-SE -Duser.region=SE -Duser.timezone=Europe/Stockholm -WORKDIR /opt ENV PORT 8080 EXPOSE 8080 -CMD ["-jar","app.jar"] +CMD ["java","-jar","/app/app.jar"]