Skip to content

Commit

Permalink
Improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkopp committed Oct 5, 2024
1 parent 3412264 commit 0da97ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre
WORKDIR /workspace/app
ENV PORT 8080
ENV PORT=8080
EXPOSE 8080
COPY target/*.war /workspace/app/app.war
ENTRYPOINT exec java $JAVA_OPTS -jar app.war
ENTRYPOINT ["java","-jar","app.war"]
4 changes: 2 additions & 2 deletions Dockerfile.full-build
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN --mount=type=cache,target=/root/.m2 \

FROM eclipse-temurin:17-jre
WORKDIR /workspace/app
ENV PORT 8080
ENV PORT=8080
EXPOSE 8080

COPY --from=build /tmp/target/*.war /workspace/app/app.war

ENTRYPOINT exec java $JAVA_OPTS -jar app.war
ENTRYPOINT ["java","-jar","app.war"]

0 comments on commit 0da97ef

Please sign in to comment.