File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ components:
2323 image : buildguidanceimage-placeholder
2424 memoryLimit : 1024Mi
2525 endpoints :
26- - name : http-8080
27- targetPort : 8080
26+ - name : http-8081
27+ targetPort : 8081
2828 - name : tools
2929 container :
3030 image : quay.io/eclipse/che-java11-maven:nightly
Original file line number Diff line number Diff line change 1111# ###
1212FROM quay.io/eclipse/che-java11-maven:nightly
1313
14- WORKDIR /build
15- RUN chgrp -R 0 /build && \
16- chmod -R g=u /build
14+ USER 1001
15+ RUN mkdir /build \
16+ && chown 1001:0 /build \
17+ && chmod "g+rw" /build
1718
1819# Build dependency offline to streamline build
1920COPY pom.xml .
@@ -23,8 +24,7 @@ COPY src src
2324RUN mvn package -Dmaven.test.skip=true
2425
2526FROM openjdk:11-jdk
26- WORKDIR /build
2727COPY --from=0 /build/target/demo-0.0.1-SNAPSHOT.jar /app/target/demo-0.0.1-SNAPSHOT.jar
2828
29- EXPOSE 8080
29+ EXPOSE 8081
3030ENTRYPOINT [ "java" , "-jar" , "/app/target/demo-0.0.1-SNAPSHOT.jar" ]
You can’t perform that action at this time.
0 commit comments