diff --git a/Dockerfile b/Dockerfile index 360d005..fe1ce45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -FROM alpine:3.11 as builder +FROM alpine:3.12 as builder -ENV VERSION=1.16.1 +RUN apk --no-cache add \ + openssl \ + curl -RUN apk --no-cache add openssl git openjdk8 - -RUN wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" && \ - java -jar BuildTools.jar --rev $VERSION +RUN curl -L -o /paper.jar https://papermc.io/api/v1/paper/1.16.1/131/download FROM thallian/confd-env:latest -COPY --from=builder /spigot*.jar /var/lib/minecraft/spigot.jar -COPY --from=builder /CraftBukkit/target/craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar +COPY --from=builder /paper.jar /var/lib/minecraft/paper.jar -RUN apk add --no-cache openjdk8 openssl +RUN apk add --no-cache \ + openjdk11 \ + openssl RUN addgroup minecraft -g 2222 RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft