mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
migrate to coreos
This commit is contained in:
@@ -1 +0,0 @@
|
||||
worlds/
|
||||
@@ -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 /data /root/worlds
|
||||
CMD ["/bin/bash", "/root/entry.sh"]
|
||||
|
||||
@@ -4,9 +4,8 @@ cleanup() {
|
||||
tmux send-keys stop Enter
|
||||
}
|
||||
|
||||
trap 'cleanup' TERM
|
||||
trap 'cleanup' SIGTERM SIGINT
|
||||
|
||||
rm log
|
||||
mkfifo log
|
||||
tmux new -d 'LD_LIBRARY_PATH=. ./bedrock_server > log'
|
||||
cat log &
|
||||
|
||||
@@ -13,7 +13,6 @@ view-distance=32
|
||||
tick-distance=4
|
||||
player-idle-timeout=0
|
||||
max-threads=4
|
||||
level-name=test
|
||||
level-seed=
|
||||
default-player-permission-level=visitor
|
||||
texturepack-required=false
|
||||
Reference in New Issue
Block a user