29 lines
651 B
Docker
29 lines
651 B
Docker
FROM alpine:3.12 as builder
|
|
|
|
RUN apk --no-cache add \
|
|
openssl \
|
|
curl
|
|
|
|
RUN curl -L -o /paper.jar https://papermc.io/api/v1/paper/1.16.1/131/download
|
|
|
|
FROM thallian/confd-env:latest
|
|
|
|
COPY --from=builder /paper.jar /var/lib/minecraft/paper.jar
|
|
|
|
RUN apk add --no-cache \
|
|
openjdk11 \
|
|
openssl
|
|
|
|
RUN addgroup minecraft -g 2222
|
|
RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft
|
|
|
|
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
|