This ensures a group is created inside the container before the entrypoint is triggered, as some container engines might trigger a "group not found" error assigning the GID to said group
This Docker will download and install SteamCMD. It will also install TeamFortress2 and run it.
This Docker will download and install SteamCMD. It will also install Counter-Strike 2 and run it.
**Update Notice:** Simply restart the container if a newer version of the game is available.
**ATTENTION:** You have to provide a valid Steam account with the game in it is Library and SteamGuard completely disabled so that the download is working!
_It is recommended that you create dedicated Steam account for your dedicated servers with the games in it and SteamGuard completely disabled!_
**DON'T DISABLE STEAM GUARD ON YOUR PRIMARY ACCOUNT!!!**
## Env params
**ATTENTION:** First Startup can take very long since it downloads the gameserver files!
**PUBLIC PLAY:** If you want that your server is public listed you must add '+sv_setsteamaccount YOURTOKEN' to the GAME_PARAMS (without the quotes and replace YOURTOKEN with your token).
Create your token here: https://steamcommunity.com/dev/managegameservers (every gameserver needs it's own token!!!)
You can also run multiple servers with only one SteamCMD directory!
## Example Env
| Name | Value | Example |
| --- | --- | --- |
| STEAMCMD_DIR | Folder for SteamCMD | /serverdata/steamcmd |
| SERVER_DIR | Folder for gamefile | /serverdata/serverfiles |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '232250 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 232250 |
| GAME_NAME | SRCDS gamename | tf |
| GAME_PARAMS | Values to start the server | +sv_pure 1 +randommap +maxplayers 24 |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '730 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 730 |
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.