The Counter Strike: Global Offensive server packaged into a minimalist container.
The server will automaticly execute the /usr/src/csgo/csgo/cfg/instance.cfg
config. If further configuration files needs to be loaded add a +exec $CFG_FILE
argument to the commandline, and drop the configuration file in /usr/src/csgo/csgo/cfg/*.cfg
. Take care not to use exec
statements inside configuration files loaded via an exec
statement since this will result in nothing happening.
The environment variable CSGO_GSLT
has too be set to a valid GSLT token. Get one from https://steamcommunity.com/dev/managegameservers
A couple of settings come preconfigured and can be overridden by setting some environment variables as listed in the below table:
Name | Default | Description |
---|---|---|
CSGO_TICKRATE |
128 |
Tickrate |
CSGO_GAME_PORT |
27015 |
Game and RCON port |
CSGO_MAXPLAYER |
10 |
Max number of players. Increase to allow for spectators |
CSGO_MAPGROUP |
mg_active |
List of maps used during auto rotation. Defaults to maps in active duty |
CSGO_MAP |
de_dust2 |
First map loaded |
CSGO_GSLT |
none | GSLT token, get one from https://steamcommunity.com/dev/managegameservers using the app ID 730 |
DISABLE_AUTOUPDATE |
empty | Setting this disables automatic updating of CS:GO during container startup |
To build the base image that will install CS:GO on boot run:
docker build --tag=csgo .
To build a container with CS:GO pre-downloaded run:
You need to build the base image first
docker build --tag=csgo:preinstall --file=Dockerfile-preinstall .
To update the preinstall
image without having to redownload and rebuild the container from scratch use the file Dockerfile-update
.