This commit is contained in:
Matthew Tran
2025-05-04 00:41:07 -07:00
parent 3e5a59d513
commit cb8f88fd33
13 changed files with 65 additions and 48 deletions
+9 -8
View File
@@ -3,14 +3,15 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget unzip curl tmux
RUN groupadd -g 2002 me && useradd -u 2002 -g 2002 -m me
USER me
WORKDIR /home/me
WORKDIR /root
# from https://www.minecraft.net/en-us/download/server/bedrock (currently 1.21.61.01)
RUN wget -O server.zip --user-agent "Mozilla/5.0" https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.61.01.zip
# from https://www.minecraft.net/en-us/download/server/bedrock (currently 1.21.73.01)
RUN wget -O server.zip --user-agent "Mozilla/5.0" https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.73.01.zip
RUN unzip server.zip && rm server.zip
COPY --chown=me:me entry.sh ./
COPY --chown=me:me server.properties ./
COPY --chown=me:me permissions.json ./
COPY entry.sh ./
COPY permissions.json ./
COPY server.properties ./
RUN ln -s /root/data /root/worlds
CMD ["/bin/bash", "/root/entry.sh"]