minecraft/Dockerfile

29 lines
887 B
Docker
Raw Normal View History

2021-08-05 19:21:37 +00:00
FROM thallian/confd-env:latest
2019-12-20 11:20:32 +00:00
2021-08-05 19:21:37 +00:00
RUN addgroup minecraft -g 2222
RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft
2017-10-18 08:26:41 +00:00
2021-08-05 19:21:37 +00:00
ENV VERSION=1.17.1
2021-12-15 06:12:15 +00:00
ENV SERIAL=400
ENV SHA256_SUM=3b8ea78e28f5f5224ef692762e36150e16c352e9159f6cb00db466a0de787f38
2021-08-05 19:21:37 +00:00
RUN wget -O /var/lib/minecraft/paper.jar \
https://papermc.io/api/v2/projects/paper/versions/$VERSION/builds/$SERIAL/downloads/paper-$VERSION-$SERIAL.jar
2017-10-18 08:26:41 +00:00
2021-08-05 19:21:37 +00:00
RUN echo "$SHA256_SUM /var/lib/minecraft/paper.jar" | sha256sum -c - || exit 1
2017-10-18 08:26:41 +00:00
2020-08-03 13:35:13 +00:00
RUN apk add --no-cache \
openssl
2016-07-20 14:56:47 +00:00
2021-12-15 06:12:15 +00:00
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
openjdk17-jre-headless
2021-08-05 18:21:32 +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
2017-10-18 08:26:41 +00:00
EXPOSE 25565