From fd83a017e1792db2063da62ba8a724cf680e4aa9 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 21 Jun 2024 19:20:49 -0700 Subject: [PATCH] Ensure we have the sources we need. Steamcmd is in non-free. --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index c2784dd..8087868 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,15 @@ FROM debian:bookworm-slim # Set debconf to run non-interactively RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections +# Set debconf to run non-interactively and agree to the SteamCMD EULA +RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \ + && echo steam steam/question select "I AGREE" | debconf-set-selections \ + && echo steam steam/license note '' | debconf-set-selections \ + && dpkg --add-architecture i386 + +# Add backports and contrib +RUN sed -i /etc/apt/sources.list.d/debian.sources -e 's/Components: main/Components: main contrib non-free/g' + # Install only the necessary packages RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-recommends \ nano \