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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user