/csgo-docker

CS:GO Client in Docker via VNC

Primary LanguageDockerfileMIT LicenseMIT

Dockerised CS:GO Client

Rationale

Amongst other things, this can be useful for:

  • Automated E2E testing in the cloud (can run on Kubernetes)
  • Manual testing with multiple CS:GO instances from one PC

Features

Build

docker build -t csgo .

Run

CSGO_DIR=/home/mark/games/SteamLibrary/steamapps/common/Counter-Strike\ Global\ Offensive/
docker run --rm -it \
    --name csgo \
    --shm-size 256M \
    -p 5800:5800 -p 5900:5900 \
    -v csgo:/csgo -v $CSGO_DIR:/opt/csgo:ro \
    -e USER_ID=1000 -e GROUP_ID=984 -e GAMEROOT=/opt/csgo \
    csgo

Then go to http://localhost:5800/

Screenshots

image

image

Acknowledgements

This is heavily based on https://github.com/mikenye/docker-steam

License

The contents of this repository are licensed under the MIT license. However, CS:GO and the contents of any built docker image are subject to licenses from third parties, including Valve. No affiliation with Valve.