diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..cb01254 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,24 @@ +FROM mono:latest + +RUN apt-get update +RUN apt-get install -y wget unzip xvfb x11vnc xterm i3 + +# Game + ModLoader +RUN mkdir -p /data/Stardew && \ + mkdir -p /data/nexus && \ + wget https://eris.cc/Stardew_latest_1.4.tar -qO /data/latest.tar && \ + tar xvf /data/latest.tar -C /data/Stardew && \ + wget https://github.com/Pathoschild/SMAPI/releases/download/3.4.1/SMAPI-3.4.1-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.4.1\ installer/internal/unix-install.exe" + +#mods +COPY mods/alwayson.zip /data/alwayson.tar +COPY mods/unlimitedplayers.zip /data/unlimitedplayers.tar +COPY docker-entrypoint.sh /docker-entrypoint.sh + +RUN unzip /data/alwayson.zip -d /data/Stardew/Stardew\ Valley/Mods && \ + unzip /data/unlimitedplayers.zip -d /data/Stardew/Stardew\ Valley/Mods + + +ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh new file mode 100755 index 0000000..b8fd770 --- /dev/null +++ b/docker/docker-entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +Xvfb :10 -screen 0 1000x1000x24 -ac & +export DISPLAY=:10.0 +x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -shared -passwd 23eris42 & +sleep 10 +i3 & + +TERM=xterm +/data/Stardew/Stardew\ Valley/StardewValley diff --git a/docker/mods/alwayson.zip b/docker/mods/alwayson.zip new file mode 100644 index 0000000..5bb956f Binary files /dev/null and b/docker/mods/alwayson.zip differ diff --git a/docker/mods/unlimitedplayers.zip b/docker/mods/unlimitedplayers.zip new file mode 100644 index 0000000..405a912 Binary files /dev/null and b/docker/mods/unlimitedplayers.zip differ