mirror of
https://github.com/luzifer-docker/docker-tf2-server.git
synced 2024-12-20 18:01:16 +00:00
Dockerfile for Team Fortress 2 server
76262e21dc
Removed .bsp from +map because it's not needed. Added apt-get clean, and cleared tmp folders from installation of libraries to remove unnecessary files for docker. |
||
---|---|---|
Dockerfile | ||
README.md | ||
tf.sh | ||
tf2_ds.txt | ||
update.sh |
Team Fortress 2 + Docker
Details:
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.
# Build image and tag it as tf2
docker build -t tf2 github.com/Gonzih/docker-tf2-server
# 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