From a033fb87d18f762b33bea2d2b95d39270204328e Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 23 Apr 2024 00:37:36 +0200 Subject: fixed up paths --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Dockerfile') 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 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"] -- cgit v1.2.3-70-g09d2