use alpine 3.11 as builder

This commit is contained in:
Administrator 2019-12-20 08:36:14 +00:00
parent 22ddb4474a
commit c9031acd56

View File

@ -1,6 +1,6 @@
FROM alpine:latest as builder FROM alpine:3.11 as builder
RUN apk --no-cache add libressl git openjdk8 RUN apk --no-cache add openssl git openjdk8
RUN wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" && \ RUN wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" && \
java -jar BuildTools.jar java -jar BuildTools.jar
@ -10,7 +10,7 @@ FROM thallian/confd-env:latest
COPY --from=builder /spigot*.jar /var/lib/minecraft/spigot.jar COPY --from=builder /spigot*.jar /var/lib/minecraft/spigot.jar
COPY --from=builder /craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar COPY --from=builder /craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar
RUN apk add --no-cache openjdk8 libressl RUN apk add --no-cache openjdk8 openssl
RUN addgroup minecraft -g 2222 RUN addgroup minecraft -g 2222
RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft