Remove redundant commands

This commit is contained in:
paul 2020-08-12 20:29:39 +02:00
parent c2fcd298dc
commit 049e8ae316
2 changed files with 23 additions and 22 deletions

View file

@ -1,23 +1,24 @@
FROM debian:stretch
MAINTAINER Paul <paul@zom.bi>, Mad <mad@zom.bi>
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"]

View file

@ -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 .
```