summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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"]