FROM thallian/confd-env:latest RUN addgroup minecraft -g 2222 RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft ENV VERSION=1.17.1 ENV SERIAL=157 ENV SHA256_SUM=862b043fbc0be948c380bced4aee224200568954db941ca6f6ac568cab263991 RUN wget -O /var/lib/minecraft/paper.jar \ https://papermc.io/api/v2/projects/paper/versions/$VERSION/builds/$SERIAL/downloads/paper-$VERSION-$SERIAL.jar RUN echo "$SHA256_SUM /var/lib/minecraft/paper.jar" | sha256sum -c - || exit 1 RUN apk add --no-cache \ openssl RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \ openjdk16-jre-headless 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