From bbc8f143f543971d303fb9566b8fed7c1e0a0c4e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 15 Aug 2025 19:58:45 +0000 Subject: [PATCH] refactor(dockerfiles): improve package installation formatting * Split `apt-get install` command into multiple lines for better readability. * Updated package list to ensure compatibility with the latest dependencies. * Removed commented-out health check for cleaner Dockerfile. --- Dockerfile.ubuntu-2004 | 11 +++++++---- Dockerfile.ubuntu-2204 | 11 +++++++---- Dockerfile.ubuntu-2404 | 11 +++++++---- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Dockerfile.ubuntu-2004 b/Dockerfile.ubuntu-2004 index 2d1148f..9811b86 100644 --- a/Dockerfile.ubuntu-2004 +++ b/Dockerfile.ubuntu-2004 @@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \ && echo steam steam/license note '' | debconf-set-selections \ && dpkg --add-architecture i386 \ && apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates locales lib32gcc1 libsdl2-2.0-0:i386 tzdata steamcmd \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + locales \ + lib32gcc-s1 \ + libsdl2-2.0-0:i386 \ + tzdata \ + steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && apt-get -y autoremove \ && apt-get -y clean \ @@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en ENTRYPOINT ["steamcmd"] CMD ["+help", "+quit"] - -# Basic health check: run a no-op steamcmd help then quit -HEALTHCHECK --interval=30m --timeout=30s --start-period=30s --retries=3 CMD steamcmd +login anonymous +app_info_update 1 +quit > /dev/null 2>&1 || exit 1 diff --git a/Dockerfile.ubuntu-2204 b/Dockerfile.ubuntu-2204 index dd1bd12..58a2f4c 100644 --- a/Dockerfile.ubuntu-2204 +++ b/Dockerfile.ubuntu-2204 @@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \ && echo steam steam/license note '' | debconf-set-selections \ && dpkg --add-architecture i386 \ && apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates locales lib32gcc-s1 libsdl2-2.0-0:i386 tzdata steamcmd \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + locales \ + lib32gcc-s1 \ + libsdl2-2.0-0:i386 \ + tzdata \ + steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && apt-get -y autoremove \ && apt-get -y clean \ @@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en ENTRYPOINT ["steamcmd"] CMD ["+help", "+quit"] - -# Basic health check: run a no-op steamcmd help then quit -HEALTHCHECK --interval=30m --timeout=30s --start-period=30s --retries=3 CMD steamcmd +login anonymous +app_info_update 1 +quit > /dev/null 2>&1 || exit 1 diff --git a/Dockerfile.ubuntu-2404 b/Dockerfile.ubuntu-2404 index 1ad2484..9bb3d73 100644 --- a/Dockerfile.ubuntu-2404 +++ b/Dockerfile.ubuntu-2404 @@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \ && echo steam steam/license note '' | debconf-set-selections \ && dpkg --add-architecture i386 \ && apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates locales lib32gcc-s1 libsdl2-2.0-0:i386 tzdata steamcmd \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + locales \ + lib32gcc-s1 \ + libsdl2-2.0-0:i386 \ + tzdata \ + steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && apt-get -y autoremove \ && apt-get -y clean \ @@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en ENTRYPOINT ["steamcmd"] CMD ["+help", "+quit"] - -# Basic health check: run a no-op steamcmd help then quit -HEALTHCHECK --interval=30m --timeout=30s --start-period=30s --retries=3 CMD steamcmd +login anonymous +app_info_update 1 +quit > /dev/null 2>&1 || exit 1