minecraft/Dockerfile
2017-10-18 10:26:41 +02:00

27 lines
791 B
Docker

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 registry.gitlab.com/thallian/docker-confd-env:master
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
RUN adduser -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