From 049e8ae316c4cae2c2df19d4cc0e5aeb65cc70af Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 12 Aug 2020 20:29:39 +0200 Subject: [PATCH] Remove redundant commands --- Dockerfile | 33 +++++++++++++++++---------------- README.md | 12 ++++++------ 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index b53aa5c..0bd59fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,24 @@ -FROM debian:stretch - -MAINTAINER Paul , Mad - -ENV DEBIAN_FRONTEND noninteractive - -# Create user steam +FROM debian:buster +# Create steam user RUN useradd -m -d /home/steam steam # Install dependencies (and goodies for mods) -RUN apt-get update &&\ - apt-get install -y curl lib32gcc1 lib32stdc++6 unzip git - -# Download and extract SteamCMD -RUN mkdir -p /opt/steamcmd &&\ - cd /opt/steamcmd &&\ - curl -s http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar -vxz +RUN export DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get install --yes -qq --no-install-recommends \ + curl \ + lib32gcc1 \ + lib32stdc++6 \ + unzip \ + git && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* WORKDIR /opt/steamcmd -# update steam -RUN ./steamcmd.sh +quit +# Download, extract and update SteamCMD +RUN curl -s http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar -vxz && \ + ./steamcmd.sh +quit + +ENTRYPOINT ["/opt/steamcmd/steamcmd.sh"] diff --git a/README.md b/README.md index b32f0a4..3aae267 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -## steam-base -steam-base installs the steam platform, which is required for most dedicated -source gameserves. This image is useless on its own, but can be used to -spin up gameservers for CS:GO, TF2 or Garys Mod. +## steam +steam is an image containing the steam platform, which is required for some +dedicated gameserves. This image is not very useful on its own, but can be +used as a base for spinning up gameservers for CS:GO, TF2 or Garys Mod. -### Building steam-base +### Building steam ``` -docker build -t zombi/steam-base . +docker build -t zombi/steam . ```