We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc1ada4 + be1753c commit a7f75d6Copy full SHA for a7f75d6
Dockerfile
@@ -1,13 +1,5 @@
1
FROM amazoncorretto:21
2
COPY build/libs/*SNAPSHOT.war app.war
3
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
-]
+ENV JAVA_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -Xms2g -Xmx2g"
+ENTRYPOINT ["sh", "-c", "exec java -Duser.timezone=GMT+9 $JAVA_OPTS -jar /app.war"]
0 commit comments