Skip to content

Commit

Permalink
FIX : Chgt jar, ajout locales, suppression script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Feb 20, 2024
1 parent ab6c648 commit e6ff19f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ RUN mvn --batch-mode \
#COPY --from=build-image /build/web/target/*.war /usr/local/tomcat/webapps/ROOT.war
#CMD [ "catalina.sh", "run" ]
FROM eclipse-temurin:17-jdk as kbart2kafka-image
RUN apt-get update
RUN apt-get install -y locales locales-all
ENV LC_ALL fr_FR.UTF-8
ENV LANG fr_FR.UTF-8
ENV LANGUAGE fr_FR.UTF-8
WORKDIR /app/
COPY --from=build-image /build/target/kbart2kafka-jar-with-dependencies.jar /app/kbart2kafka.jar
COPY script.sh /app/script.sh
RUN chmod 777 /app/script.sh
COPY --from=build-image /build/target/kbart2kafka.jar /app/kbart2kafka.jar
RUN mkdir /app/run
RUN cp /app/*.jar /app/run
RUN chmod 777 /app/run/*
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["/bin/bash","/app/script.sh"]
ENTRYPOINT ["tail", "-f", "/dev/null"]
3 changes: 0 additions & 3 deletions script.sh

This file was deleted.

0 comments on commit e6ff19f

Please sign in to comment.