diff --git a/Dockerfile b/Dockerfile index c53a795c..772b74d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,6 +78,6 @@ VOLUME ${NEXUS_DATA} EXPOSE 8081 USER nexus -ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs" +ENV INSTALL4J_ADD_VM_PARAMS="-XX:InitialRAMPercentage=80.0 -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs" CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]