Skip to content

Commit 7019142

Browse files
committed
settings: Dockerfile 오류 수정
1 parent 06439c1 commit 7019142

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

Dockerfile.dev

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@ COPY ${JAR_FILE} server.jar
55

66
EXPOSE 8080
77

8-
ENTRYPOINT ["java",
9-
"-Xms256m",
10-
"-Xmx384m",
11-
"-XX:+HeapDumpOnOutOfMemoryError",
12-
"-XX:HeapDumpPath=/tmp/heapdump.hprof",
13-
"-XX:OnOutOfMemoryError='kill -9%p'",
14-
"-Dspring.profiles.active=dev",
15-
"-jar", "server.jar"]
8+
ENTRYPOINT ["java", "-Xms256m", "-Xmx512m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/tmp/heapdump.hprof", "-XX:OnOutOfMemoryError=kill -9 %p", "-Dspring.profiles.active=dev", "-jar", "server.jar"]

Dockerfile.prod

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@ COPY ${JAR_FILE} server.jar
55

66
EXPOSE 8080
77

8-
ENTRYPOINT ["java",
9-
"-Xms256m",
10-
"-Xmx384m",
11-
"-XX:+HeapDumpOnOutOfMemoryError",
12-
"-XX:HeapDumpPath=/tmp/heapdump.hprof",
13-
"-XX:OnOutOfMemoryError='kill -9%p'",
14-
"-Dspring.profiles.active=prod",
15-
"-jar", "server.jar"]
8+
ENTRYPOINT ["java", "-Xms256m", "-Xmx512m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/tmp/heapdump.hprof", "-XX:OnOutOfMemoryError=kill -9 %p", "-Dspring.profiles.active=prod", "-jar", "server.jar"]

0 commit comments

Comments
 (0)