L1Z3 / BOTW-Multiplayer-Steam-Deck

[WORK IN PROGRESS] Simple install script for the Breath of the Wild Multiplayer mod on Steam Deck/Linux.
6 stars 0 forks source link

Add server script #46

Open L1Z3 opened 1 year ago

L1Z3 commented 1 year ago

See this Docker image from "acoolname" on Discord:

FROM ubuntu
EXPOSE "5050/tcp"
ENV DISPLAY :0
WORKDIR /opt
RUN dpkg --add-architecture i386 && apt-get update && apt-get upgrade -y && apt-get install -y wine winetricks xvfb 
RUN mkdir /opt/botwm
WORKDIR /opt/botwm
COPY BOTWM_Autoupdater.exe /opt/botwm
RUN useradd botwm -d /opt
COPY .wine /opt/.wine
RUN chown -R botwm:botwm /opt
RUN chmod +x /opt/botwm/BOTWM_Autoupdater.exe
RUN ls -la /opt/botwm
RUN Xvfb :0 & sleep 3 && sudo -u botwm wine /opt/botwm/BOTWM_Autoupdater.exe
COPY runner.sh /opt/botwm/DedicatedServer/runner.sh
COPY ServerConfig.ini /opt/botwm/DedicatedServer/ServerConfig.ini
RUN chown -R botwm:botwm DedicatedServer && chmod +x DedicatedServer/runner.sh
WORKDIR /opt/botwm/DedicatedServer
ENTRYPOINT ["/bin/sh", "-i", "/opt/botwm/DedicatedServer/runner.sh"]
ACoolUsername9001 commented 11 months ago
FROM ubuntu
EXPOSE "5050/udp"
LABEL type=GAME

ENV DISPLAY :0
WORKDIR /opt
RUN dpkg --add-architecture i386 && apt-get update && apt-get upgrade -y && apt-get install -y wget libicu74
RUN useradd botwm -d /opt && chown -R botwm:botwm /opt

USER botwm:botwm
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && DOTNET_ROOT=/opt/.dotnet ./dotnet-install.sh --channel 6.0

COPY server-files /opt/botwm

USER root:root
RUN chown -R botwm:botwm /opt

USER botwm:botwm
WORKDIR /opt/botwm
WORKDIR /opt/botwm
ENTRYPOINT [ "/opt/.dotnet/dotnet", "BOTW.DedicatedServer.dll" ]

updated version that does not rely on downloading from the auto-updater