dockerfile back fonctionne
This commit is contained in:
@@ -55,7 +55,6 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
etherpad:
|
etherpad:
|
||||||
@@ -64,7 +63,6 @@ services:
|
|||||||
- "9001:9001"
|
- "9001:9001"
|
||||||
volumes:
|
volumes:
|
||||||
- ../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
- ../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
mail:
|
mail:
|
||||||
@@ -72,10 +70,10 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "2525:25"
|
- "2525:25"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
external: true
|
external: false
|
||||||
|
name: app-network
|
||||||
@@ -1,27 +1,31 @@
|
|||||||
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:23.1-java17 AS builder
|
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:23.0-java17 AS builder
|
||||||
|
|
||||||
|
# a executer a la racine du projet
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN microdnf install -y maven
|
RUN microdnf install -y maven
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
COPY doodlestudent/api /app
|
COPY doodlestudent/api /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN mvn package -Pnative -Dquarkus.native.container-build=true -DskipTests
|
RUN ./mvnw dependency:resolve
|
||||||
|
|
||||||
|
COPY doodlestudent/api/src /app/src
|
||||||
|
RUN ./mvnw package -Pnative -DskipTests
|
||||||
|
|
||||||
RUN ls -l target
|
RUN ls -l target
|
||||||
|
|
||||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
|
||||||
|
|
||||||
WORKDIR /work/
|
WORKDIR /work/
|
||||||
|
|
||||||
|
COPY --from=builder --chown=1001:root /app/target/*-runner /work/application
|
||||||
|
|
||||||
RUN chown 1001 /work \
|
RUN chown 1001 /work \
|
||||||
&& chmod "g+rwX" /work \
|
&& chmod "g+rwX" /work \
|
||||||
&& chown 1001:root /work
|
&& chown 1001:root /work
|
||||||
|
|
||||||
COPY --from=builder --chown=1001:root /app/target/*-runner /work/application
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
USER 1001
|
USER 1001
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user