java memory updates

This commit is contained in:
2023-11-12 08:54:12 -08:00
parent 2db1eb3f62
commit f1f7db6c7a
4 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ LABEL maintainer "fithwum"
ENV ACCEPT_EULA=""
ENV GAME_PORT=""
ENV MC_VERSION=""
ENV XMX=""
ENV XMS=""
ENV XMN=""
# URL's for files
ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/minecraft/-/raw/master/vanilla/install_script.sh

View File

@@ -6,7 +6,7 @@ cd /MCserver
JAR=./MCserver-*.jar
while [ true ]; do
java -Xmx4G -Xms1G -Xmn1G -jar $JAR nogui
java -Xmx$XMX -Xms$XMS -Xmn$XMN -jar $JAR nogui
if [ $? -eq 0 ]; then
break
fi