Skip to content

Commit

Permalink
Correct run java in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Philip authored and Jan Philip committed Oct 13, 2021
1 parent 9736ff7 commit 5269706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN mvn -DskipTests=true package

FROM openjdk:11-jdk
ARG JAVA_OPTS
COPY target/isbnvalidator-0.0.1-SNAPSHOT.jar isbnvalidator-0.0.1-SNAPSHOT.jar
COPY --from=MAVEN_BUILD ./build/target/*.jar /app/libadmin.jar
ENV JAVA_OPTS=$JAVA_OPTS
EXPOSE 8080
ENTRYPOINT exec java $JAVA_OPTS -jar isbnvalidator-0.0.1-SNAPSHOT.jar
ENTRYPOINT exec java $JAVA_OPTS -jar libadmin.jar

0 comments on commit 5269706

Please sign in to comment.