From bf52a39a255f375d81d9c0d92a2636d6cbf5398b Mon Sep 17 00:00:00 2001 From: Vichea <48352653+vicheanath@users.noreply.github.com> Date: Thu, 8 Feb 2024 09:18:22 -0600 Subject: [PATCH] refactor: Add ENV to java option to able passing env database to Application --- backend/pms/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/pms/Dockerfile b/backend/pms/Dockerfile index 33ab916..fde5e84 100644 --- a/backend/pms/Dockerfile +++ b/backend/pms/Dockerfile @@ -3,7 +3,6 @@ FROM openjdk:17-jdk-alpine WORKDIR /app COPY target/*.jar app.jar - EXPOSE 8080 - -ENTRYPOINT ["java","-jar","/app/app.jar"] \ No newline at end of file +ENV JAVA_OPTS="" +ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app/app.jar" ] \ No newline at end of file