mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 20:17:54 +00:00
18 lines
516 B
Docker
18 lines
516 B
Docker
FROM ubuntu:24.04
|
|
|
|
RUN apt-get update && apt-get -y upgrade
|
|
RUN apt-get install -y wget unzip curl tmux
|
|
|
|
WORKDIR /root
|
|
|
|
# from https://www.minecraft.net/en-us/download/server/bedrock (currently 1.21.82.1)
|
|
RUN wget -O server.zip --user-agent "Mozilla/5.0" https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.82.1.zip
|
|
RUN unzip server.zip && rm server.zip
|
|
|
|
COPY entry.sh ./
|
|
COPY permissions.json ./
|
|
COPY server.properties ./
|
|
|
|
RUN ln -s /data /root/worlds
|
|
CMD ["/bin/bash", "/root/entry.sh"]
|