Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
barcellos-pedro committed Jan 30, 2024
1 parent d554477 commit 61ae940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM eclipse-temurin:21-jdk-alpine
FROM eclipse-temurin:21-jre-alpine
VOLUME /tmp
WORKDIR /app
COPY run.sh .
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT ["./run.sh"]
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
chmod +x run.sh
exec java ${JAVA_OPTS} -jar app.jar ${@}

0 comments on commit 61ae940

Please sign in to comment.