From 6fc18b898c90f65a1d54a0286580aebd30f990ee Mon Sep 17 00:00:00 2001 From: ACoolName Date: Thu, 13 Mar 2025 13:35:03 +0200 Subject: [PATCH] formatted botw dockerfile --- breath-of-the-wild-multiplayer/Dockerfile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/breath-of-the-wild-multiplayer/Dockerfile b/breath-of-the-wild-multiplayer/Dockerfile index 63bd497..d0378c6 100644 --- a/breath-of-the-wild-multiplayer/Dockerfile +++ b/breath-of-the-wild-multiplayer/Dockerfile @@ -1,21 +1,33 @@ FROM ubuntu -EXPOSE "5050/tcp" + +EXPOSE 5050/tcp +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 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 + +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" ]