Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
image/base: Remove script usr/bin/apt-docker
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <thetredev@gmail.com>
  • Loading branch information
thetredev committed Dec 23, 2023
1 parent d8701e0 commit 569a498
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 56 deletions.
20 changes: 11 additions & 9 deletions image/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ ENV TIME_ZONE=UTC \
LC_ALL=C \
DEBIAN_FRONTEND=noninteractive

# Copy build context into image
COPY . /

# Configure system
WORKDIR /tmp

RUN dpkg-reconfigure locales
RUN apt-docker quick-install \
RUN apt-get update && \
apt-get -y install --no-install-recommends \
# basic tools
file \
zip \
Expand All @@ -47,10 +45,8 @@ RUN apt-docker quick-install \
nano \
bash-completion \
&& \
# Remve preinstalled SSHD configs but keep steamcmd.conf
mv /etc/ssh/sshd_config.d/steamcmd.conf /tmp/steamcmd.conf && \
rm -f /etc/ssh/sshd_config.d/* && \
mv /tmp/steamcmd.conf /etc/ssh/sshd_config.d/steamcmd.conf \
# Remve preinstalled SSHD configs
rm -f /etc/ssh/sshd_config.d/* \
&& \
# Update CA certificates
update-ca-certificates \
Expand Down Expand Up @@ -83,7 +79,10 @@ RUN apt-docker quick-install \
/usr/bin/passwd \
/usr/bin/gpasswd \
/usr/bin/newgrp \
/usr/sbin/pam_timestamp_check
/usr/sbin/pam_timestamp_check \
&& \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*

# Switch to SteamCMD user
USER steamcmd
Expand All @@ -107,6 +106,9 @@ WORKDIR ${STEAMCMD_SERVER_HOME}
# Declare SteamCMD install directory as Docker volume to enable incremental updates
VOLUME [ ${STEAMCMD_INSTALL_DIR} ]

# Copy build context into image
COPY . /

# Declare server health check
HEALTHCHECK --interval=5s --timeout=360s --start-period=15s --retries=20 \
CMD server.sh healthy
Expand Down
47 changes: 0 additions & 47 deletions image/base/usr/bin/apt-docker

This file was deleted.

0 comments on commit 569a498

Please sign in to comment.