Update 'build-minecraft.jenkins'

This commit is contained in:
Hyatt 2021-05-25 17:56:39 +00:00
parent 93db3432c5
commit f0323cd5fa

View File

@ -66,13 +66,19 @@ FROM ${baseImage}:${baseImageTag}
MAINTAINER The_Spider <spider@smoothnet.org>
RUN apk add --no-cache ${alpineJavaPackage} curl && \\
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
RUN printf '%s\\n' "aHR0cHM6Ly9kbC1jZG4uYWxwaW5lbGludXgub3JnL2FscGluZS9lZGdlL21haW4KaHR0cHM6Ly9k" \\
"bC1jZG4uYWxwaW5lbGludXgub3JnL2FscGluZS9lZGdlL2NvbW11bml0eQpodHRwczovL2RsLWNk" \\
"bi5hbHBpbmVsaW51eC5vcmcvYWxwaW5lL2VkZ2UvdGVzdGluZwo=" > /etc/apk/repositories && \\
apk update && \\
apk upgrade -y && \\
apk add --no-cache ${alpineJavaPackage} curl && \\
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