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 """