Use DepotDownloader to reduce download size
As you know, the game files used by the client are also downloaded when running a CS2 server, rather than just files dedicated to that purpose. However, you can use a third party application called DepotDownloader to ignore certain files using the -filelist and -depot parameters, therefore cutting down on download size. DepotDownloader can also cache Steam Guard credentials.
The lists of files can be found here:
- Common asset files (including maps): https://steamdb.info/depot/2347770/
- Linux binaries: https://steamdb.info/depot/2347773/
- Windows binaries: https://steamdb.info/depot/2347771/
The asset files found in these depots can be inspected using Source 2 Viewer (aka ValveResourceFormat), which may be able to identify files not needed for DS operation.
Thanks, pointy
Cool idea!
The challenge will be figuring out which files can be done away with.
Currently, the best way to get the container to start quickly is to attach a persistent volume so that you only need to download updates on container start:
-v /var/lib/docker/cs2-data:/home/steam/cs2-dedicated/