Skip to content

Commit 75620d7

Browse files
authored
Merge pull request #399 from mosu-dev/develop
perf: DockerFile 수정
2 parents 2137ec9 + a7f75d6 commit 75620d7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile

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

4-
ENTRYPOINT [
5-
"java",
6-
"-Duser.timezone=GMT+9",
7-
"-Djava.security.egd=file:/dev/./urandom",
8-
"-XX:+UseG1GC",
9-
"-XX:MaxGCPauseMillis=100",
10-
"-Xms2g",
11-
"-Xmx2g",
12-
"-jar", "/app.war"
13-
]
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)