Fix dockerfile

This commit is contained in:
Marc Baloup 2022-12-02 16:32:28 +01:00
parent 311d53c32a
commit 7c4cacfa07
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -7,14 +7,14 @@ RUN mkdir jar bundle workdir
ADD $RUNNABLE_SERVER_JAR jar/paper.jar
RUN java -DbundlerRepoDir=/data/bundle -Dpaperclip.patchonly=true -jar
RUN java -DbundlerRepoDir=/data/bundle -Dpaperclip.patchonly=true -jar /data/jar/paper.jar
ENV MAXMEM=1024M
EXPOSE 25565
VOLUME /data/workdir
WORKDIR workdir
WORKDIR /data/workdir
CMD java -Xmx$MAXMEM -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:G1ReservePercent=15 -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=30 \