33 lines
1023 B
Docker
33 lines
1023 B
Docker
FROM docker.io/thallian/confd-env:3.16
|
|
|
|
RUN addgroup minecraft -g 2222
|
|
RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft
|
|
|
|
ENV VERSION=1.19.2
|
|
ENV SERIAL=270
|
|
ENV SHA256_SUM=49b2a798cdde4d35482f2862ce51150a7017dc7706ab1b887f07bc434a1e8602
|
|
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 \
|
|
openjdk17-jre-headless
|
|
|
|
ADD /rootfs /
|
|
|
|
RUN mkdir /var/lib/minecraft/settings
|
|
WORKDIR /var/lib/minecraft
|
|
|
|
RUN ln -s settings/ops.json ops.json
|
|
RUN ln -s settings/whitelist.json whitelist.json
|
|
RUN ln -s settings/banned-ips.json banned-ips.json
|
|
RUN ln -s settings/banned-players.json banned-players.json
|
|
|
|
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
|