| 1 |
(from "ubuntu:12.04") |
| 2 |
(expose "27015") |
| 3 |
(expose "27005") |
| 4 |
(expose "26901") |
| 5 |
(expose "27020") |
| 6 |
(run "apt-get update && apt-get install libc6-dev-i386 curl unzip -y") |
| 7 |
(run "mkdir -p /steam") |
| 8 |
(run "curl http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar vxz -C /steam") |
| 9 |
(add "./script" "/steam/script") |
| 10 |
(run "/steam/steamcmd.sh +runscript /steam/script") |
| 11 |
(run "curl http://mirror.pointysoftware.net/alliedmodders/mmsource-1.10.0-linux.tar.gz | tar vxz -C /steam/tf2/tf") |
| 12 |
(run "curl http://mirror.pointysoftware.net/alliedmodders/sourcemod-1.5.3-linux.tar.gz | tar vxz -C /steam/tf2/tf") |
| 13 |
(add "./server.cfg" "/steam/tf2/tf/cfg/server.cfg") |
| 14 |
(add "./ctf_2fort.cfg" "/steam/tf2/tf/cfg/ctf_2fort.cfg") |
| 15 |
(add "./sourcemod.cfg" "/steam/tf2/tf/cfg/sourcemod/sourcemod.cfg") |
| 16 |
(run "rm -r /steam/tf2/tf/addons/sourcemod/configs") |
| 17 |
(add "./configs" "/steam/tf2/tf/addons/sourcemod/configs") |
| 18 |
(run "mkdir -p /steam/tf2/tf/addons/sourcemod/translations/en") |
| 19 |
(run "cp /steam/tf2/tf/addons/sourcemod/translations/*.txt /steam/tf2/tf/addons/sourcemod/translations/en") |
| 20 |
(cmd "cd /steam/tf2 && ./srcds_run -port 27015 +ip 0.0.0.0 +map ctf_2fort -autoupdate -steam_dir /steam -steamcmd_script /steam/script +tf_bot_quota 12 +tf_bot_quota_mode fill") |