use new s6-rc layout
This commit is contained in:
parent
9c6eb03a31
commit
b79e393eea
8 changed files with 33 additions and 30 deletions
22
Dockerfile
22
Dockerfile
|
@ -3,24 +3,28 @@ 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=400
|
||||
ENV SHA256_SUM=3b8ea78e28f5f5224ef692762e36150e16c352e9159f6cb00db466a0de787f38
|
||||
ENV VERSION=1.18.1
|
||||
ENV SERIAL=198
|
||||
ENV SHA256_SUM=8074cb747c215777c0d16bae4abbe98acda6b9a1f6a223dd128a44175ed33075
|
||||
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/community \
|
||||
openjdk17-jre-headless
|
||||
|
||||
RUN mkdir -p /etc/services.d/minecraft/
|
||||
openssl \
|
||||
openjdk17-jre-headless
|
||||
|
||||
ADD /rootfs /
|
||||
|
||||
RUN mkdir /var/lib/minecraft/settings
|
||||
WORKDIR /var/lib/minecraft
|
||||
|
||||
RUN ln -s ops.json settings/ops.json
|
||||
RUN ln -s whitelist.json settings/whitelist.json
|
||||
RUN ln -s banned-ips.json settings/banned-ips.json
|
||||
RUN ln -s banned-players.json settings/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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue