Adds escaping of trailing lines on run commands
This commit is contained in:
parent
7a037d61d0
commit
47c9067345
@ -3,9 +3,9 @@ FROM alpine:latest
|
|||||||
|
|
||||||
MAINTAINER The_Spider <spider@smoothnet.org>
|
MAINTAINER The_Spider <spider@smoothnet.org>
|
||||||
|
|
||||||
RUN \
|
RUN \\
|
||||||
apk add --no-cache openjdk11 curl && \
|
apk add --no-cache openjdk11 curl && \\
|
||||||
addgroup -S -g 1000 minecraft && \
|
addgroup -S -g 1000 minecraft && \\
|
||||||
adduser -S minecraft -G minecraft -h /minecraft -u 1000
|
adduser -S minecraft -G minecraft -h /minecraft -u 1000
|
||||||
|
|
||||||
USER minecraft
|
USER minecraft
|
||||||
@ -13,10 +13,10 @@ USER minecraft
|
|||||||
WORKDIR /minecraft
|
WORKDIR /minecraft
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
curl -Ls https://papermc.io/api/v1/paper/1.14.4/latest/download -o /minecraft/paper-mc.jar && \
|
curl -Ls https://papermc.io/api/v1/paper/1.14.4/latest/download -o /minecraft/paper-mc.jar && \\
|
||||||
mkdir /minecraft/data && \
|
mkdir /minecraft/data && \\
|
||||||
mkdir /minecraft/html && \
|
mkdir /minecraft/html && \\
|
||||||
cd /minecraft/data && \
|
cd /minecraft/data && \\
|
||||||
java -jar ../paper-mc.jar; exit 0
|
java -jar ../paper-mc.jar; exit 0
|
||||||
|
|
||||||
CMD cd data; java -Xms1g -Xmx20g -jar ../paper-mc.jar
|
CMD cd data; java -Xms1g -Xmx20g -jar ../paper-mc.jar
|
||||||
|
Reference in New Issue
Block a user