summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 4debfb6bf8b0e7a843f6f19479c36bbfaede75d7 (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
FROM docker.io/alpine:latest

MAINTAINER Hende, Botond <nettingman@gmail.com>
LABEL Description="PaperMC server"

RUN apk add --no-cache --virtual container-buildtime jq
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 chown -R nobody:nobody /opt/minecraft

RUN apk del container-buildtime

WORKDIR /opt/minecraft
USER guest
EXPOSE 9001/tcp

CMD ["/opt/minecraft/start.sh"]