From 1e72500d371e4c8acff5aef904f7bcab5817007b Mon Sep 17 00:00:00 2001 From: norimicry Date: Fri, 10 Dec 2021 00:05:36 +0100 Subject: [PATCH] I wanna die, dotnet is a bitch --- docker/Dockerfile | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9e3b390..722907b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,35 +1,29 @@ # Pull base image. FROM jlesage/baseimage-gui:debian-10 -# Install xterm. -#RUN add-pkg xterm - -# Copy the start script. -#COPY startapp.sh /startapp.sh - # Set the name of the application. ENV APP_NAME="StardewValley" - - -#FROM mono:latest - RUN apt-get update -#RUN apt-get install -y wget unzip xvfb x11vnc xterm i3 -RUN apt-get install -y wget unzip tar strace mono-complete xterm -RUN apt-get install -y gettext-base jq netcat procps +RUN apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps -# Game + ModLoader 1.5.4 3.8.3 +# Game + ModLoader 1.5.5 3.13.1 RUN mkdir -p /data/Stardew && \ mkdir -p /data/nexus && \ - wget https://eris.cc/Stardew_latest.tar.gz -qO /data/latest.tar.gz && \ + wget https://eris.cc/Stardew_1.5.5.tar.gz -qO /data/latest.tar.gz && \ tar xf /data/latest.tar.gz -C /data/Stardew && \ rm /data/latest.tar.gz -RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.9.0/SMAPI-3.9.0-installer.zip -qO /data/nexus.zip && \ - unzip /data/nexus.zip -d /data/nexus/ && \ - /bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 3.9.0\ installer/internal/unix-install.exe" +RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/6788a5a5-1879-4095-948d-72c7fbdf350f/c996151548ec9f24d553817db64c3577/dotnet-sdk-5.0.402-linux-x64.tar.gz \ +#RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/95352809-7f41-40f3-974d-8d530321a8e4/0024d7bf0c872f176ceba7a63a34915b/dotnet-runtime-6.0.0-linux-musl-x64.tar.gz \ + && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ + && rm dotnet.tar.gz \ + && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet +RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.13.2/SMAPI-3.13.2-installer.zip -qO /data/nexus.zip && \ + unzip /data/nexus.zip -d /data/nexus/ && \ + /bin/bash -c "echo -e \"2\n\n\" | /data/nexus/SMAPI\ 3.13.2\ installer/internal/linux/SMAPI.Installer --install --game-path \"/data/Stardew/Stardew Valley\"" || : + #/bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /data/nexus/SMAPI\ 3.13.2\ installer/internal/linux/SMAPI.Installer" # Add Mods @@ -42,8 +36,7 @@ RUN chmod +x /data/Stardew/Stardew\ Valley/StardewValley && \ chown -R 1000:1000 /data/Stardew && \ chmod +x /opt/*.sh -RUN \ - APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehead_Fern.png && \ +RUN APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehead_Fern.png && \ install_app_icon.sh "$APP_ICON_URL" COPY docker-entrypoint.sh /startapp.sh