Add JAVA_OPTS
This commit is contained in:
Родитель
03c93b3871
Коммит
b235cb7b04
|
@ -52,6 +52,9 @@ USER jboss
|
|||
# Expose the ports we're interested in
|
||||
EXPOSE 8080
|
||||
|
||||
# Make Java 8 obey container resource limits, improve performance
|
||||
ENV JAVA_OPTS "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:+UseG1GC -Djava.awt.headless=true"
|
||||
|
||||
# Set the default command to run on boot
|
||||
# This will boot WildFly in the standalone mode and bind to all interface
|
||||
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче