Skip to content

Commit

Permalink
Merge pull request #65 from vicheanath/docker-setup
Browse files Browse the repository at this point in the history
refactor: Add ENV to java option to able passing env database to Appl…
  • Loading branch information
vicheanath authored Feb 8, 2024
2 parents 8e73b0b + bf52a39 commit 2316418
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/pms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM openjdk:17-jdk-alpine
WORKDIR /app

COPY target/*.jar app.jar

EXPOSE 8080

ENTRYPOINT ["java","-jar","/app/app.jar"]
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app/app.jar" ]

0 comments on commit 2316418

Please sign in to comment.