You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
TrainerInvoice/Dockerfile

14 lines
565 B

FROM adoptopenjdk:11-jre-hotspot as builder
ARG JAR_FILE=trainerinvoice*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
FROM adoptopenjdk:11-jre-hotspot
RUN echo "Europe/Berlin" > /etc/timezone
COPY --from=builder dependencies/ ./
COPY --from=builder snapshot-dependencies/ ./
COPY --from=builder spring-boot-loader/ ./
COPY --from=builder application/ ./
ENV JAVA_OPTS="-Duser.language=de -Duser.country=DE -Duser.region=DE"
ENV TZ=Europe/Berlin
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]