File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11
22
33# "Provides the native-image executable. Used by the Maven and Gradle plugin from Quarkus to build linux64 executables"
4- FROM maven:3.9-eclipse-temurin AS build
4+ FROM maven:3.9-eclipse-temurin-24 AS build
55WORKDIR /app
66# Image defaults to /project; copy controlled by .dockerignore
77COPY --chown=quarkus:quarkus . ./
88RUN ./mvnw package -DskipTests
99
1010
11- FROM registry.access.redhat.com/ubi9/openjdk-21:1.21 as deploy
11+ FROM eclipse-temurin:24-jdk as deploy
1212
1313ENV LANGUAGE='en_US:en'
1414
15+ RUN mkdir /deployments
16+
1517
1618# We make four distinct layers so if there are application changes the library layers can be re-used
1719COPY --chown=185 --from=build /app/target/quarkus-app/lib/ /deployments/lib/
18- COPY --chown=185 --from=build /app/target/quarkus-app/*.jar /deployments/
20+ COPY --chown=185 --from=build /app/target/quarkus-app/*.jar /deployments/app.jar
1921COPY --chown=185 --from=build /app/target/quarkus-app/app/ /deployments/app/
2022COPY --chown=185 --from=build /app/target/quarkus-app/quarkus/ /deployments/quarkus/
2123
2224EXPOSE 3000
2325HEALTHCHECK --interval=300s --timeout=3s CMD curl -f http://localhost:3000/ || exit 1
2426USER 185
2527ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
26- ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
27-
28+ CMD ["java" , "-jar" , "/deployments/app.jar" ]
You can’t perform that action at this time.
0 commit comments