# Copyright Max Ludovico Hofer. All Rights Reserved. # A Godot 4 dedicated server under kumo's match contract: export the project for # Linux (x86_64) with the "Dedicated Server" export mode into server/, with the # kumo events plugin (Connect your game) enabled, then build this image beside it. FROM debian:bookworm-slim 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. ENTRYPOINT ["sh", "-c", "exec ./game.x86_64 --headless"]