mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
add tmodloader
This commit is contained in:
+14
-10
@@ -1,21 +1,25 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
RUN apt-get install -y wget unzip
|
||||
RUN apt-get install -y wget unzip dotnet-runtime-8.0
|
||||
|
||||
RUN groupadd -g 2002 me && useradd -u 2002 -g 2002 -m me
|
||||
USER me
|
||||
WORKDIR /home/me
|
||||
|
||||
# from https://terraria.fandom.com/wiki/Server (currently 1.4.4.9)
|
||||
RUN wget https://terraria.org/api/download/pc-dedicated-server/terraria-server-1449.zip
|
||||
RUN unzip terraria-server-1449.zip && rm terraria-server-1449.zip
|
||||
RUN mv 1449/ server/
|
||||
# from https://github.com/tModLoader/tModLoader/releases (currently v2025.02.3.2)
|
||||
RUN wget https://github.com/tModLoader/tModLoader/releases/download/v2025.02.3.2/tModLoader.zip
|
||||
RUN unzip tModLoader.zip -d server && rm tModLoader.zip
|
||||
|
||||
RUN chmod +x server/start-tModLoaderServer.sh
|
||||
RUN mkdir server/tModLoader-Logs && touch server/tModLoader-Logs/server.log
|
||||
RUN echo "" > server/LaunchUtils/InstallDotNet.sh
|
||||
COPY --chown=me:me entry.sh ./
|
||||
|
||||
WORKDIR /home/me/server/Linux
|
||||
|
||||
RUN chmod +x TerrariaServer.bin.x86_64
|
||||
COPY --chown=me:me config.default ./config.txt
|
||||
COPY --chown=me:me password.default ./password.txt
|
||||
COPY --chown=me:me config.txt password.tx[t] ./
|
||||
COPY --chown=me:me config.tx[t] password.tx[t] ./
|
||||
|
||||
# To add mods, install them on the client and copy over the .tmod files to mods/
|
||||
# Then modify/create mods/enabled.json and add the desired mods to enable
|
||||
|
||||
# TODO reduce idle cpu when no players...
|
||||
|
||||
Reference in New Issue
Block a user