dockerfile back fonctionne
This commit is contained in:
@@ -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
|
||||
RUN microdnf install -y maven
|
||||
|
||||
|
||||
|
||||
COPY doodlestudent/api /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
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
|
||||
|
||||
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
|
||||
|
||||
COPY --from=builder --chown=1001:root /app/target/*-runner /work/application
|
||||
|
||||
EXPOSE 8080
|
||||
USER 1001
|
||||
|
||||
|
||||
Reference in New Issue
Block a user