diff --git a/Dockerfile b/Dockerfile index 5ac0a72d..f400a8d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,5 @@ FROM amazoncorretto:21 COPY build/libs/*SNAPSHOT.war app.war -ENTRYPOINT [ - "java", - "-Duser.timezone=GMT+9", - "-Djava.security.egd=file:/dev/./urandom", - "-XX:+UseG1GC", - "-XX:MaxGCPauseMillis=100", - "-Xms2g", - "-Xmx2g", - "-jar", "/app.war" -] \ No newline at end of file +ENV JAVA_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -Xms2g -Xmx2g" +ENTRYPOINT ["sh", "-c", "exec java -Duser.timezone=GMT+9 $JAVA_OPTS -jar /app.war"] \ No newline at end of file