diff options
author | Botond Hende <nettingman@gmail.com> | 2024-04-23 00:37:36 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-04-23 00:37:36 +0200 |
commit | a033fb87d18f762b33bea2d2b95d39270204328e (patch) | |
tree | 5074c3fea39563e320dd5410f47ca9a675e6f725 /Dockerfile | |
parent | 408ace2b1031b152baf55a01e490f227fa3b5437 (diff) |
fixed up paths
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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"] |