2020-08-03 13:35:13 +00:00
|
|
|
FROM alpine:3.12 as builder
|
2016-07-20 14:56:47 +00:00
|
|
|
|
2020-08-03 13:35:13 +00:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
openssl \
|
|
|
|
curl
|
2019-12-20 11:20:32 +00:00
|
|
|
|
2020-08-03 13:35:13 +00:00
|
|
|
RUN curl -L -o /paper.jar https://papermc.io/api/v1/paper/1.16.1/131/download
|
2017-10-18 08:26:41 +00:00
|
|
|
|
2018-11-27 07:36:16 +00:00
|
|
|
FROM thallian/confd-env:latest
|
2017-10-18 08:26:41 +00:00
|
|
|
|
2020-08-03 13:35:13 +00:00
|
|
|
COPY --from=builder /paper.jar /var/lib/minecraft/paper.jar
|
2017-10-18 08:26:41 +00:00
|
|
|
|
2020-08-03 13:35:13 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
openjdk11 \
|
|
|
|
openssl
|
2016-07-20 14:56:47 +00:00
|
|
|
|
2017-10-18 09:27:59 +00:00
|
|
|
RUN addgroup minecraft -g 2222
|
|
|
|
RUN adduser -u 2222 -h /var/lib/minecraft -D -G minecraft minecraft
|
2016-07-20 14:56:47 +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
|