From 408ace2b1031b152baf55a01e490f227fa3b5437 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 22 Apr 2024 23:29:38 +0200 Subject: initial commit --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4debfb6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM docker.io/alpine:latest + +MAINTAINER Hende, Botond +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"] + -- cgit v1.2.3-70-g09d2