summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-22 23:29:38 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-22 23:29:38 +0200
commit408ace2b1031b152baf55a01e490f227fa3b5437 (patch)
tree00e2cab7f43707c0f6920f5c4d5c82f14ae578cf /Dockerfile
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
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"]
+