summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-23 00:37:36 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-23 00:37:36 +0200
commita033fb87d18f762b33bea2d2b95d39270204328e (patch)
tree5074c3fea39563e320dd5410f47ca9a675e6f725 /Dockerfile
parent408ace2b1031b152baf55a01e490f227fa3b5437 (diff)
fixed up paths
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 4debfb6..68cb468 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ 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 --virtual container-buildtime jq curl
RUN apk add --no-cache openjdk21
RUN mkdir /opt/minecraft
@@ -14,13 +14,15 @@ 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 addgroup -S minecraft && adduser -S minecraft -G minecraft
+RUN chown -R minecraft:minecraft /opt/minecraft
RUN apk del container-buildtime
-WORKDIR /opt/minecraft
-USER guest
-EXPOSE 9001/tcp
+WORKDIR /opt/minecraft/world
+USER minecraft
+EXPOSE 23673/tcp
CMD ["/opt/minecraft/start.sh"]