2021-01-23 17:10:21 +00:00
|
|
|
# Pull base image.
|
|
|
|
FROM jlesage/baseimage-gui:debian-10
|
|
|
|
|
|
|
|
# Set the name of the application.
|
|
|
|
ENV APP_NAME="StardewValley"
|
|
|
|
|
2020-04-06 23:36:11 +00:00
|
|
|
RUN apt-get update
|
2021-12-09 23:05:36 +00:00
|
|
|
RUN apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps
|
2022-06-08 20:39:31 +00:00
|
|
|
RUN APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehead_Fern.png && \
|
|
|
|
install_app_icon.sh "$APP_ICON_URL"
|
2020-04-06 23:36:11 +00:00
|
|
|
|
2022-06-08 20:39:31 +00:00
|
|
|
# Game + ModLoader 1.5.6 3.14.7
|
2020-04-06 23:36:11 +00:00
|
|
|
RUN mkdir -p /data/Stardew && \
|
|
|
|
mkdir -p /data/nexus && \
|
2022-06-08 20:39:31 +00:00
|
|
|
wget https://eris.cc/Stardew_latest.tar.gz -qO /data/latest.tar.gz && \
|
2020-04-07 01:07:14 +00:00
|
|
|
tar xf /data/latest.tar.gz -C /data/Stardew && \
|
2021-01-23 17:10:21 +00:00
|
|
|
rm /data/latest.tar.gz
|
|
|
|
|
2021-12-09 23:05:36 +00:00
|
|
|
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
|
2020-04-06 23:36:11 +00:00
|
|
|
|
2022-06-08 20:39:31 +00:00
|
|
|
RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.14.7/SMAPI-3.14.7-installer.zip -qO /data/nexus.zip && \
|
2021-12-09 23:05:36 +00:00
|
|
|
unzip /data/nexus.zip -d /data/nexus/ && \
|
2022-06-08 20:39:31 +00:00
|
|
|
/bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e \"2\n\n\" | /data/nexus/SMAPI\ 3.14.7\ installer/internal/linux/SMAPI.Installer --install --game-path \"/data/Stardew/Stardew Valley\"" || :
|
2021-01-23 20:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Add Mods & Scripts
|
|
|
|
COPY ["mods/", "/data/Stardew/Stardew Valley/Mods/"]
|
|
|
|
COPY scripts/ /opt/
|
|
|
|
|
2021-01-23 17:10:21 +00:00
|
|
|
RUN chmod +x /data/Stardew/Stardew\ Valley/StardewValley && \
|
2021-01-23 20:04:33 +00:00
|
|
|
chmod -R 777 /data/Stardew/ && \
|
|
|
|
chown -R 1000:1000 /data/Stardew && \
|
|
|
|
chmod +x /opt/*.sh
|
|
|
|
|
2021-01-23 17:10:21 +00:00
|
|
|
COPY docker-entrypoint.sh /startapp.sh
|