Update 'build-minecraft.jenkins'

This commit is contained in:
Hyatt 2021-05-23 00:52:01 +00:00
parent 91db0d48db
commit aa46652033

View File

@ -66,20 +66,18 @@ FROM ${baseImage}:${baseImageTag}
MAINTAINER The_Spider <spider@smoothnet.org>
RUN \\
apk add --no-cache ${alpineJavaPackage} curl && \\
RUN apk add --no-cache ${alpineJavaPackage} curl && \\
addgroup -S -g 1000 minecraft && \\
adduser -S minecraft -G minecraft -h /minecraft -u 1000
adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\
curl -Ls "${paperMCDownload}" -o /minecraft/paper-mc.jar && \\
mkdir /minecraft/data && \\
mkdir /minecraft/html && \\
chown -R minecraft:minecraft /minecraft
USER minecraft
WORKDIR /minecraft
RUN \
curl -Ls "${paperMCDownload}" -o /minecraft/paper-mc.jar && \\
mkdir /minecraft/data && \\
mkdir /minecraft/html
CMD cd data; java -Xms${memoryMin} -Xmx${memoryMax} -jar ../paper-mc.jar
"""