Sign inSign up

k4rian/steamcmd

By k4rian

•Updated over 2 years ago

A base Docker image for Valve's SteamCMD.

Image
Networking
0

1.6K

k4rian/steamcmd repository overview

docker-steamcmd logo

A base Docker image for Valve's SteamCMD⁠ based on Debian⁠ (bookworm-slim).


Docker TagVersionPlatformDescription
latest⁠1.1amd64The default and the most bug-free image.
min⁠1.1amd64Minimal version that doesn't contain the language locale fix and, thus, is about 20% smaller.

⁠Introduction

This image can be considered a fork of CM2Walki⁠'s steamcmd⁠ image with some modifications and fixes:

  • A default gameserver folder (located in /home/steam) has been added to keep all server files instead of using a different folder for each game.
  • An issue involving the steamclient.so library has been fixed by creating a symbolic link to the corresponding file.
  • An issue concerning the setlocale function has been fixed by installing and configuring the missing package.
  • The image doesn't use a volume by default.

⁠Usage

Whilst this image should be used as a base image for any supported SteamCMD game server, it can also be used directly for testing purposes.

Example 1:
Create a new container and get access to the SteamCMD console:

docker run --name steamcmd -it k4rian/steamcmd

Example 2:
Create a ephemeral container and use SteamCMD to download the Left 4 Dead 2 Dedicated Server files in the current directory then quit:

docker run --rm \
  -v $(pwd):/home/steam/gameserver \
  k4rian/steamcmd \
  +force_install_dir /home/steam/gameserver \
  +login anonymous \
  +app_update 222860 \
  +quit

⁠Manual build

Requirements:
— Docker >= 18.03.1
— Git (optional)

Like any Docker image the building process is pretty straightforward:

  • Clone (or download) the GitHub repository to an empty folder on your local machine:
git clone https://github.com/K4rian/docker-steamcmd.git .
  • Then run the following commands inside the newly created folder:
docker build --no-cache -f Dockerfile -t k4rian/steamcmd:latest .
docker build --no-cache -f min.Dockerfile -t k4rian/steamcmd:min .

⁠See also

  • docker-srcds⁠ — A Docker image used to run any Source Dedicated Server games (Counter-Strike: Source, Left 4 Dead 1/2, Team Fortress 2, etc.) which use this image as base.

⁠License

MIT⁠

Tag summary

Content type

Image

Digest

sha256:29b934298…

Size

44.5 MB

Last updated

over 2 years ago

docker pull k4rian/steamcmd