This commit is contained in:
Evert Prants 2024-12-21 22:18:27 +02:00
parent 0e0af9c08f
commit 38bb93b711
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -14,7 +14,7 @@ ENV GAME_PATH="/data/Stardew/game"
## lib32gcc-s1 is required for steamcmd ## lib32gcc-s1 is required for steamcmd
RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps lib32gcc-s1 locales && apt-get clean RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps lib32gcc-s1 locales && apt-get clean
# Game + ModLoader 1.6.2 4.0.1 # Game + ModLoader 1.6.15 4.1.10
RUN mkdir -p ${GAME_PATH} && \ RUN mkdir -p ${GAME_PATH} && \
mkdir -p /data/nexus && \ mkdir -p /data/nexus && \
@ -51,7 +51,7 @@ RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/
rm dotnet.tar.gz &&\ rm dotnet.tar.gz &&\
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
RUN wget --user-agent="Mozilla" https://github.com/Pathoschild/SMAPI/releases/download/4.1.7/SMAPI-4.1.7-installer.zip -qO /data/nexus.zip && \ RUN wget --user-agent="Mozilla" https://github.com/Pathoschild/SMAPI/releases/download/4.1.10/SMAPI-4.1.10-installer.zip -qO /data/nexus.zip && \
unzip /data/nexus.zip -d /data/nexus/ && \ unzip /data/nexus.zip -d /data/nexus/ && \
SMAPI_INSTALLER=$(find /data/nexus -name 'SMAPI*.*Installer' -type f -path "*/SMAPI * installer/internal/linux/*" | head -n 1) && \ SMAPI_INSTALLER=$(find /data/nexus -name 'SMAPI*.*Installer' -type f -path "*/SMAPI * installer/internal/linux/*" | head -n 1) && \
/bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e '2\n\n' | \"$SMAPI_INSTALLER\" --install --game-path \"$GAME_PATH\"" || : /bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e '2\n\n' | \"$SMAPI_INSTALLER\" --install --game-path \"$GAME_PATH\"" || :