minecraft/Dockerfile

27 lines
791 B
Docker
Raw Normal View History

2017-10-18 08:26:41 +00:00
FROM alpine:latest as builder
2016-07-20 14:56:47 +00:00
2017-10-18 08:26:41 +00:00
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
2016-07-20 14:56:47 +00:00
RUN addgroup minecraft
RUN adduser -h /var/lib/minecraft -D -G minecraft minecraft
2017-07-12 08:26:40 +00:00
RUN mkdir -p /etc/services.d/minecraft/
2016-07-20 14:56:47 +00:00
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
2017-10-18 08:26:41 +00:00
EXPOSE 25565