# Copyright Max Ludovico Hofer. All Rights Reserved. # A Unity dedicated server under kumo's match contract: build the project as # Linux Dedicated Server into server/ (named Game.x86_64), with the kumo events # package (Connect your game) in it, then build this image beside it. FROM ubuntu:24.04 RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* RUN useradd --create-home --uid 10001 game WORKDIR /home/game COPY --chown=game:game server/ ./ USER game # kumo publishes KUMO_MATCH_PORT (udp and tcp) and passes the match in the environment; # the game's transport listens on KumoMatch.Instance.Port. ENTRYPOINT ["sh", "-c", "exec ./Game.x86_64 -batchmode -nographics -logFile -"]