From 6c117f2ea17fec8ad684f65d7b9a2ad308f110cf Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Thu, 28 Jul 2022 01:23:41 +0100 Subject: [PATCH] Download Quake on each boot instead of making a bloated image. --- Dockerfile | 6 ++---- README.md | 4 +++- start.sh | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 15ec636..7d9cd35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ FROM steamcmd/steamcmd:ubuntu WORKDIR /game -RUN steamcmd +login anonymous +force_install_dir /game +app_update 349090 validate +exit - -COPY start.sh . +COPY start.sh /start.sh ENTRYPOINT [ "bash" ] -CMD [ "/game/start.sh" ] \ No newline at end of file +CMD [ "/start.sh" ] \ No newline at end of file diff --git a/README.md b/README.md index 9e86632..424ff34 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,6 @@ services: - HOSTNAME=JackNet - PASSWORD=password123 - RCON_PASSWORD=superSecurePassword -``` \ No newline at end of file +``` + +Mount /game if you want some level of persistence. I haven't tried getting updates to work, so instead I just download from fresh on each boot. \ No newline at end of file diff --git a/start.sh b/start.sh index 9a53bb1..6632463 100644 --- a/start.sh +++ b/start.sh @@ -7,6 +7,8 @@ Password="${PASSWORD:-}" RconPassword="${RCON_PASSWORD:-}" StatsPassword="${STATS_PASSWORD:-}" +steamcmd +login anonymous +force_install_dir /game +app_update 349090 validate +exit + /game/run_server_x64.sh \ +set net_strict 1 \ +set net_port "${GamePort}" \