Skip to content

Commit

Permalink
Fix : update version jdk dans Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Apr 18, 2024
1 parent e896fe1 commit 11eeab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###
# Image pour la compilation
FROM maven:3-eclipse-temurin-11 as build-image
FROM maven:3-eclipse-temurin-17 as build-image
WORKDIR /build/
# Installation et configuration de la locale FR
RUN apt update && DEBIAN_FRONTEND=noninteractive apt -y install locales
Expand Down Expand Up @@ -35,7 +35,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 tomcat:9-jdk11 as api-image
FROM tomcat:9-jdk17 as api-image
WORKDIR /app/
COPY --from=build-image /build/web/target/*.jar /app/item.jar
ENV TZ=Europe/Paris
Expand Down Expand Up @@ -63,7 +63,7 @@ RUN dnf install -y cronie gettext && \
crond -V && rm -rf /etc/cron.*/*
COPY ./docker/batch/tasks.tmpl /etc/cron.d/tasks.tmpl
# Le JAR et le script pour le batch de LN
RUN dnf install -y java-11-openjdk
RUN dnf install -y java-17-openjdk

RUN dnf install -y tzdata && \
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
Expand Down

0 comments on commit 11eeab5

Please sign in to comment.