Update 'build-minecraft.jenkins'
This commit is contained in:
parent
91db0d48db
commit
aa46652033
@ -66,20 +66,18 @@ FROM ${baseImage}:${baseImageTag}
|
|||||||
|
|
||||||
MAINTAINER The_Spider <spider@smoothnet.org>
|
MAINTAINER The_Spider <spider@smoothnet.org>
|
||||||
|
|
||||||
RUN \\
|
RUN apk add --no-cache ${alpineJavaPackage} curl && \\
|
||||||
apk add --no-cache ${alpineJavaPackage} curl && \\
|
|
||||||
addgroup -S -g 1000 minecraft && \\
|
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
|
USER minecraft
|
||||||
|
|
||||||
WORKDIR /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
|
CMD cd data; java -Xms${memoryMin} -Xmx${memoryMax} -jar ../paper-mc.jar
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user