forked from Archives/Athou_commafeed
use openj9 as the Java runtime to reduce memory usage
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM eclipse-temurin:21.0.3_9-jre
|
||||
FROM ibm-semeru-runtimes:open-21-jre
|
||||
|
||||
EXPOSE 8082
|
||||
|
||||
@@ -8,5 +8,5 @@ VOLUME /commafeed/data
|
||||
COPY commafeed-server/config.yml.example config.yml
|
||||
COPY commafeed-server/target/commafeed.jar .
|
||||
|
||||
ENV JAVA_TOOL_OPTIONS -Djava.net.preferIPv4Stack=true -Xms20m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:-ShrinkHeapInSteps -XX:G1PeriodicGCInterval=10000 -XX:-G1PeriodicGCInvokesConcurrent -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10
|
||||
ENV JAVA_TOOL_OPTIONS -Djava.net.preferIPv4Stack=true -Xtune:virtualized -Xminf0.05 -Xmaxf0.1
|
||||
CMD ["java", "-jar", "commafeed.jar", "server", "config.yml"]
|
||||
|
||||
Reference in New Issue
Block a user