blob: 68cb4682d60b95ee91c329019a2027a62777c6e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
FROM docker.io/alpine:latest
MAINTAINER Hende, Botond <nettingman@gmail.com>
LABEL Description="PaperMC server"
RUN apk add --no-cache --virtual container-buildtime jq curl
RUN apk add --no-cache openjdk21
RUN mkdir /opt/minecraft
RUN mkdir /tmp/papermc
COPY papermc_getlatest.sh /tmp/papermc/papermc_getlatest.sh
RUN /tmp/papermc/papermc_getlatest.sh
RUN rm -rf /tmp/papermc
COPY start.sh /opt/minecraft/start.sh
RUN addgroup -S minecraft && adduser -S minecraft -G minecraft
RUN chown -R minecraft:minecraft /opt/minecraft
RUN apk del container-buildtime
WORKDIR /opt/minecraft/world
USER minecraft
EXPOSE 23673/tcp
CMD ["/opt/minecraft/start.sh"]
|