Skip to content

Commit bbc8f14

Browse files
committed
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.
1 parent 0dde420 commit bbc8f14

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

Dockerfile.ubuntu-2004

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \
2424
&& echo steam steam/license note '' | debconf-set-selections \
2525
&& dpkg --add-architecture i386 \
2626
&& apt-get update \
27-
&& apt-get install -y --no-install-recommends ca-certificates locales lib32gcc1 libsdl2-2.0-0:i386 tzdata steamcmd \
27+
&& apt-get install -y --no-install-recommends \
28+
ca-certificates \
29+
locales \
30+
lib32gcc-s1 \
31+
libsdl2-2.0-0:i386 \
32+
tzdata \
33+
steamcmd \
2834
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
2935
&& apt-get -y autoremove \
3036
&& apt-get -y clean \
@@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en
3844

3945
ENTRYPOINT ["steamcmd"]
4046
CMD ["+help", "+quit"]
41-
42-
# Basic health check: run a no-op steamcmd help then quit
43-
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

Dockerfile.ubuntu-2204

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \
2424
&& echo steam steam/license note '' | debconf-set-selections \
2525
&& dpkg --add-architecture i386 \
2626
&& apt-get update \
27-
&& apt-get install -y --no-install-recommends ca-certificates locales lib32gcc-s1 libsdl2-2.0-0:i386 tzdata steamcmd \
27+
&& apt-get install -y --no-install-recommends \
28+
ca-certificates \
29+
locales \
30+
lib32gcc-s1 \
31+
libsdl2-2.0-0:i386 \
32+
tzdata \
33+
steamcmd \
2834
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
2935
&& apt-get -y autoremove \
3036
&& apt-get -y clean \
@@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en
3844

3945
ENTRYPOINT ["steamcmd"]
4046
CMD ["+help", "+quit"]
41-
42-
# Basic health check: run a no-op steamcmd help then quit
43-
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

Dockerfile.ubuntu-2404

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ RUN echo "**** Install SteamCMD ****" \
2424
&& echo steam steam/license note '' | debconf-set-selections \
2525
&& dpkg --add-architecture i386 \
2626
&& apt-get update \
27-
&& apt-get install -y --no-install-recommends ca-certificates locales lib32gcc-s1 libsdl2-2.0-0:i386 tzdata steamcmd \
27+
&& apt-get install -y --no-install-recommends \
28+
ca-certificates \
29+
locales \
30+
lib32gcc-s1 \
31+
libsdl2-2.0-0:i386 \
32+
tzdata \
33+
steamcmd \
2834
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
2935
&& apt-get -y autoremove \
3036
&& apt-get -y clean \
@@ -38,6 +44,3 @@ ENV LANGUAGE=en_US:en
3844

3945
ENTRYPOINT ["steamcmd"]
4046
CMD ["+help", "+quit"]
41-
42-
# Basic health check: run a no-op steamcmd help then quit
43-
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

0 commit comments

Comments
 (0)