File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ components:
2626 image : buildguidanceimage-placeholder
2727 memoryLimit : 1024Mi
2828 endpoints :
29- - name : http-8080
30- targetPort : 8080
29+ - name : http-8081
30+ targetPort : 8081
3131 - name : tools
3232 container :
3333 image : quay.io/eclipse/che-quarkus:nightly
Original file line number Diff line number Diff line change 11FROM registry.access.redhat.com/ubi8/openjdk-11:latest
22
3- WORKDIR /build
3+ WORKDIR /tmp
44RUN mkdir -p .mvn/wrapper
55# Build dependency offline to streamline build
66COPY mvnw* .
@@ -52,12 +52,12 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
5252# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
5353ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
5454# We make four distinct layers so if there are application changes the library layers can be re-used
55- COPY --from=0 --chown=1001 /build /target/quarkus-app/lib/ /deployments/lib/
56- COPY --from=0 --chown=1001 /build /target/quarkus-app/*.jar /deployments/
57- COPY --from=0 --chown=1001 /build /target/quarkus-app/app/ /deployments/app/
58- COPY --from=0 --chown=1001 /build /target/quarkus-app/quarkus/ /deployments/quarkus/
55+ COPY --from=0 --chown=1001 /tmp /target/quarkus-app/lib/ /deployments/lib/
56+ COPY --from=0 --chown=1001 /tmp /target/quarkus-app/*.jar /deployments/
57+ COPY --from=0 --chown=1001 /tmp /target/quarkus-app/app/ /deployments/app/
58+ COPY --from=0 --chown=1001 /tmp /target/quarkus-app/quarkus/ /deployments/quarkus/
5959
60- EXPOSE 8080
60+ EXPOSE 8081
6161USER 1001
6262
6363ENTRYPOINT [ "/deployments/run-java.sh" ]
You can’t perform that action at this time.
0 commit comments