From 47c90673458dfd3122960116df892192eb1ea277 Mon Sep 17 00:00:00 2001 From: TheSp1der Date: Wed, 30 Oct 2019 20:29:23 -0500 Subject: [PATCH] Adds escaping of trailing lines on run commands --- build-minecraft.jenkins | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build-minecraft.jenkins b/build-minecraft.jenkins index 266e970..fd9447d 100644 --- a/build-minecraft.jenkins +++ b/build-minecraft.jenkins @@ -3,9 +3,9 @@ FROM alpine:latest MAINTAINER The_Spider -RUN \ - apk add --no-cache openjdk11 curl && \ - addgroup -S -g 1000 minecraft && \ +RUN \\ + apk add --no-cache openjdk11 curl && \\ + addgroup -S -g 1000 minecraft && \\ adduser -S minecraft -G minecraft -h /minecraft -u 1000 USER minecraft @@ -13,10 +13,10 @@ USER minecraft WORKDIR /minecraft RUN \ - curl -Ls https://papermc.io/api/v1/paper/1.14.4/latest/download -o /minecraft/paper-mc.jar && \ - mkdir /minecraft/data && \ - mkdir /minecraft/html && \ - cd /minecraft/data && \ + curl -Ls https://papermc.io/api/v1/paper/1.14.4/latest/download -o /minecraft/paper-mc.jar && \\ + mkdir /minecraft/data && \\ + mkdir /minecraft/html && \\ + cd /minecraft/data && \\ java -jar ../paper-mc.jar; exit 0 CMD cd data; java -Xms1g -Xmx20g -jar ../paper-mc.jar