Update 'build-minecraft.jenkins'
This commit is contained in:
parent
93db3432c5
commit
f0323cd5fa
@ -66,13 +66,19 @@ FROM ${baseImage}:${baseImageTag}
|
|||||||
|
|
||||||
MAINTAINER The_Spider <spider@smoothnet.org>
|
MAINTAINER The_Spider <spider@smoothnet.org>
|
||||||
|
|
||||||
RUN apk add --no-cache ${alpineJavaPackage} curl && \\
|
RUN printf '%s\\n' "aHR0cHM6Ly9kbC1jZG4uYWxwaW5lbGludXgub3JnL2FscGluZS9lZGdlL21haW4KaHR0cHM6Ly9k" \\
|
||||||
addgroup -S -g 1000 minecraft && \\
|
"bC1jZG4uYWxwaW5lbGludXgub3JnL2FscGluZS9lZGdlL2NvbW11bml0eQpodHRwczovL2RsLWNk" \\
|
||||||
adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\
|
"bi5hbHBpbmVsaW51eC5vcmcvYWxwaW5lL2VkZ2UvdGVzdGluZwo=" > /etc/apk/repositories && \\
|
||||||
curl -Ls "${paperMCDownload}" -o /minecraft/paper-mc.jar && \\
|
apk update && \\
|
||||||
mkdir /minecraft/data && \\
|
apk upgrade -y && \\
|
||||||
mkdir /minecraft/html && \\
|
apk add --no-cache ${alpineJavaPackage} curl && \\
|
||||||
chown -R minecraft:minecraft /minecraft
|
apk cache --purge && \\
|
||||||
|
addgroup -S -g 1000 minecraft && \\
|
||||||
|
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user