FROM thallian/confd-env:latest RUN apk add --no-cache openjdk8 git openssl bash RUN mkdir -p /etc/services.d/minecraft/ RUN addgroup minecraft RUN adduser -h /var/lib/minecraft -D -G minecraft minecraft RUN mkdir /tmp/minecraft/ RUN wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" -O /tmp/minecraft/BuildTools.jar RUN cd /tmp/minecraft && bash -c 'java -jar BuildTools.jar' RUN cp /tmp/minecraft/spigot*.jar /var/lib/minecraft/spigot.jar RUN cp /tmp/minecraft/craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar RUN rm -r /tmp/minecraft RUN apk del git bash 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