Browse Source

Merge branch 'main' into feat/uid

pull/82/head
Daniel Gibbs 10 months ago
parent
commit
45c76c10be
Failed to extract signature
  1. 3
      .checkov.yml
  2. 14
      Dockerfile.ubuntu-2004
  3. 14
      Dockerfile.ubuntu-2204
  4. 17
      Dockerfile.ubuntu-2404

3
.checkov.yml

@ -0,0 +1,3 @@
skip-check:
- CKV_DOCKER_2
- CKV_DOCKER_3

14
Dockerfile.ubuntu-2004

@ -24,17 +24,22 @@ 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 \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
# Create non-root user/group with configurable IDs
RUN groupadd -g "${PGID}" steam \
@ -46,6 +51,3 @@ WORKDIR /home/steam
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

14
Dockerfile.ubuntu-2204

@ -24,17 +24,22 @@ 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 \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
# Create non-root user/group with configurable IDs
RUN groupadd -g "${PGID}" steam \
@ -46,6 +51,3 @@ WORKDIR /home/steam
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

17
Dockerfile.ubuntu-2404

@ -1,5 +1,8 @@
FROM ubuntu:24.04
## Remove ubuntu user added in 24.04 by default
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
ARG DEBIAN_FRONTEND=noninteractive
ARG PUID=1000
ARG PGID=1000
@ -24,17 +27,22 @@ 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 \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
# Create non-root user
RUN groupadd -g "${PGID}" steam \
@ -46,6 +54,3 @@ WORKDIR /home/steam
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

Loading…
Cancel
Save