From aa466520334ce6d617d9461f647fea88986bd90f Mon Sep 17 00:00:00 2001 From: The_Spider Date: Sun, 23 May 2021 00:52:01 +0000 Subject: [PATCH] Update 'build-minecraft.jenkins' --- build-minecraft.jenkins | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/build-minecraft.jenkins b/build-minecraft.jenkins index 9de444a..6848e01 100644 --- a/build-minecraft.jenkins +++ b/build-minecraft.jenkins @@ -66,20 +66,18 @@ FROM ${baseImage}:${baseImageTag} MAINTAINER The_Spider -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 """