minecraft/Dockerfile

24 lines
865 B
Docker
Raw Normal View History

2016-11-01 15:11:11 +00:00
FROM quay.io/thallian/confd-env:latest
2016-07-20 14:56:47 +00:00
2017-06-13 10:21:34 +00:00
RUN apk add --no-cache openjdk8 git libressl bash
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 /tmp/minecraft/ && \
wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" -O /tmp/minecraft/BuildTools.jar && \
cd /tmp/minecraft && bash -c 'java -jar BuildTools.jar' && \
cp /tmp/minecraft/spigot*.jar /var/lib/minecraft/spigot.jar && \
cp /tmp/minecraft/craftbukkit*.jar /var/lib/minecraft/craftbukkit.jar && \
rm -r /tmp/minecraft && \
apk del git bash
2016-07-20 14:56:47 +00:00
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
EXPOSE 25565