diff --git a/Dockerfile b/Dockerfile index a1b1358e1..80febdc86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,5 @@ VOLUME /commafeed/data COPY commafeed-server/config.yml.example config.yml COPY commafeed-server/target/commafeed.jar . -CMD ["java", "-Djava.net.preferIPv4Stack=true", "-jar", "commafeed.jar", "server", "config.yml"] +ENV JAVA_TOOL_OPTIONS -Djava.net.preferIPv4Stack=true -Xms20m -XX:+UseG1GC -XX:-ShrinkHeapInSteps -XX:G1PeriodicGCInterval=10000 -XX:-G1PeriodicGCInvokesConcurrent -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 +CMD ["java", "-jar", "commafeed.jar", "server", "config.yml"]