From 3afd2334f79c665ce63ff5e888fde6bc336fe12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gully?= Date: Fri, 5 Aug 2022 09:38:02 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20tentative=20de=20bascule=20vers=20e?= =?UTF-8?q?clipse-temurin=20=C3=A0=20la=20place=20de=20l'image=20openjdk?= =?UTF-8?q?=20qui=20n'est=20plus=20maintenue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cf https://github.com/docker-library/openjdk/issues/505 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6dfadf47..9e2cd203 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ### # Image pour la compilation -FROM maven:3-jdk-11 as build-image +FROM maven:3-eclipse-temurin-11 as build-image WORKDIR /build/ # Installation et configuration de la locale FR RUN apt update && DEBIAN_FRONTEND=noninteractive apt -y install locales @@ -33,7 +33,7 @@ RUN mvn --batch-mode \ #FROM tomcat:9-jdk11 as api-image #COPY --from=build-image /build/web/target/*.war /usr/local/tomcat/webapps/ROOT.war #CMD [ "catalina.sh", "run" ] -FROM openjdk:11 as api-image +FROM eclipse-temurin:11-jdk as api-image WORKDIR /app/ COPY --from=build-image /build/web/target/*.jar /app/qualimarc.jar ENTRYPOINT ["java","-jar","/app/qualimarc.jar"]