Skip to content

Commit be1753c

Browse files
committed
MOSU-395 refactor: GC 옵션 ENV 분리
1 parent e0b9074 commit be1753c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM amazoncorretto:21
22
COPY build/libs/*SNAPSHOT.war app.war
33

4-
ENTRYPOINT ["java", "-Duser.timezone=GMT+9", "-Djava.security.egd=file:/dev/./urandom", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-Xms2g", "-Xmx2g", "-jar", "/app.war"]
4+
ENV JAVA_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -Xms2g -Xmx2g"
5+
ENTRYPOINT ["sh", "-c", "exec java -Duser.timezone=GMT+9 $JAVA_OPTS -jar /app.war"]

0 commit comments

Comments
 (0)