suppr fichiers inutiles
This commit is contained in:
@@ -1,18 +1,40 @@
|
||||
FROM alpine:3.23
|
||||
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:23.0-java17 AS builder
|
||||
|
||||
RUN apk --no-cache add curl bash
|
||||
# a executer a la racine du projet
|
||||
|
||||
# java 17 car c'est la version utilise dans maven (voir pom.xml)
|
||||
RUN apk --no-cache add openjdk17-jdk maven
|
||||
USER root
|
||||
RUN microdnf install -y maven
|
||||
|
||||
COPY doodlestudent/api /app
|
||||
|
||||
RUN mvn install -Dpackaging=jar
|
||||
RUN mvn package -DskipTests
|
||||
WORKDIR /app
|
||||
|
||||
RUN ./mvnw dependency:resolve
|
||||
|
||||
COPY doodlestudent/api/src /app/src
|
||||
RUN ./mvnw package -Pnative -DskipTests
|
||||
|
||||
RUN ls -l target
|
||||
|
||||
# Quarkus semble utilise le port 8080 par defaut
|
||||
EXPOSE 8080
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
|
||||
|
||||
ENTRYPOINT [ "java", "-jar", "/app/target/tlcdemoApp-1.0.0-SNAPSHOT.jar" ]
|
||||
WORKDIR /work/
|
||||
|
||||
COPY --from=builder --chown=1001:root /app/target/*-runner /work/application
|
||||
|
||||
RUN chown 1001 /work \
|
||||
&& chmod "g+rwX" /work \
|
||||
&& chown 1001:root /work
|
||||
|
||||
EXPOSE 8080
|
||||
USER 1001
|
||||
|
||||
ENV quarkus_datasource_jdbc_url "jdbc:mysql://db:3306/tlc?allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&createDatabaseIfNotExist=true&serverTimezone=Europe/Paris"
|
||||
ENV quarkus_datasource_username tlc
|
||||
ENV quarkus_datasource_password tlc
|
||||
ENV QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION update
|
||||
ENV doodle_internalPadUrl "http://etherpad:9001/"
|
||||
ENV doodle_externalPadUrl "http://etherpad:9001/"
|
||||
ENV mailer_host mail
|
||||
ENV mailer_port 25
|
||||
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user