FROM alpine:latest as builder RUN apk --no-cache add libressl git openjdk8 RUN wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" && \ java -jar BuildTools.jar FROM thallian/confd-env:latest COPY --from=builder /spigot*.jar /var/lib/minecraft/spigot.jar COPY --from=builder /craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar RUN apk add --no-cache openjdk8 libressl RUN addgroup minecraft -g 2222 RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft RUN mkdir -p /etc/services.d/minecraft/ ADD /rootfs / RUN chown -R minecraft:minecraft /var/lib/minecraft VOLUME /var/lib/minecraft/world /var/lib/minecraft/world_nether /var/lib/minecraft/world_the_end /var/lib/minecraft/plugins EXPOSE 25565