Updated Dockerfile and added .gitattributes

Adjusted Docker `FROM` statement in Dockerfile and removed app-icon installation. Updated SMAPI installer command to search in the correct directory. Added .gitattributes file to ensure line-endings are consistent by converting all CRLF to LF.
This commit is contained in:
norimicry 2024-03-30 11:12:11 -04:00
parent a85bafd392
commit 594a355fc0
2 changed files with 7 additions and 7 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
* text=auto
*.sh text eol=lf
*.conf text eol=lf

View File

@ -1,13 +1,10 @@
# Pull base image. # Pull base image.
FROM jlesage/baseimage-gui:debian-11-v4 FROM jlesage/baseimage-gui:debian-11
# Set the name of the application. # Set the name of the application.
ENV APP_NAME="StardewValley" ENV APP_NAME="StardewValley"
RUN apt-get update RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps && apt-get clean
RUN apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps
RUN APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehead_Fern.png && \
install_app_icon.sh "$APP_ICON_URL"
# Game + ModLoader 1.6.2 4.0.1 # Game + ModLoader 1.6.2 4.0.1
RUN mkdir -p /data/Stardew && \ RUN mkdir -p /data/Stardew && \
@ -23,8 +20,8 @@ RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/
RUN wget https://mirror.cloudcraft.info/SMAPI_latest.zip -qO /data/nexus.zip && \ RUN wget https://mirror.cloudcraft.info/SMAPI_latest.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 | 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 "/data/Stardew/game"" || : /bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e '2\n\n' | \"$SMAPI_INSTALLER\" --install --game-path '/data/Stardew/game'" || :
# Add Mods & Scripts # Add Mods & Scripts
COPY ["mods/", "/data/Stardew/game/Mods/"] COPY ["mods/", "/data/Stardew/game/Mods/"]