diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
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 <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"] + |