Skip to content

Commit

Permalink
Restore build folder
Browse files Browse the repository at this point in the history
Signed-off-by: eyuen <[email protected]>
  • Loading branch information
elsony committed Apr 30, 2021
1 parent 7987e31 commit 74d488b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
####
FROM quay.io/eclipse/che-java11-maven:nightly

WORKDIR /tmp
USER root
WORKDIR /build

# Build dependency offline to streamline build
COPY pom.xml .
Expand All @@ -21,7 +22,7 @@ COPY src src
RUN mvn package -Dmaven.test.skip=true

FROM openjdk:11-jdk
COPY --from=0 /tmp/target/demo-0.0.1-SNAPSHOT.jar /app/target/demo-0.0.1-SNAPSHOT.jar
COPY --from=0 /build/target/demo-0.0.1-SNAPSHOT.jar /app/target/demo-0.0.1-SNAPSHOT.jar

EXPOSE 8081
ENTRYPOINT [ "java", "-jar", "/app/target/demo-0.0.1-SNAPSHOT.jar", "--server.port=8081" ]

0 comments on commit 74d488b

Please sign in to comment.