2013-11-03 11:43:58 +00:00
|
|
|
## Team Fortress 2 + Docker
|
|
|
|
|
|
|
|
### Details:
|
2013-11-03 11:46:06 +00:00
|
|
|
By default image is build with enabled autoupdate feature (take a look at `tf.sh` file).
|
|
|
|
You can create new Dockerfile based on that image (FROM tf2) and customize it with plugins, configs, CMD and ENTRYPOINT instructions.
|
2013-11-03 11:43:58 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
# Build image and tag it as tf2
|
2013-11-03 15:18:56 +00:00
|
|
|
docker build -t tf2 github.com/Gonzih/docker-tf2-server
|
2013-11-03 11:43:58 +00:00
|
|
|
|
|
|
|
# Run image with default options (CMD in Dockerfile)
|
|
|
|
docker run -d -p 27015:27015/udp tf2
|
|
|
|
|
|
|
|
# Run image with custom options
|
|
|
|
docker run -d -p 27015:27015/udp tf2 +sv_pure 2 +map ctf_2fort.bsp +maxplayers 32
|
|
|
|
```
|