commit b5c14c4a665ee4a596d122bcab30d057d5032fec Author: Knut Ahlers Date: Sun Dec 20 22:06:00 2015 +0100 Teeworlds Server v0.6.3 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7f7659c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM debian + +MAINTAINER Knut Ahlers + +ENV VERSION 0.6.3 + +WORKDIR /opt + +ADD start.sh /opt/start.sh +ADD config.dist.cfg /opt/config.dist.cfg + +ADD https://downloads.teeworlds.com/teeworlds-${VERSION}-linux_x86_64.tar.gz /opt/teeworlds.tar.gz +RUN tar xzf teeworlds.tar.gz \ + && mv /opt/teeworlds*/ /opt/teeworlds + +VOLUME /data +EXPOSE 8303/tcp + +ENTRYPOINT ["/opt/start.sh"] +CMD ["--"] diff --git a/config.dist.cfg b/config.dist.cfg new file mode 100644 index 0000000..3f48da5 --- /dev/null +++ b/config.dist.cfg @@ -0,0 +1,9 @@ +sv_name Teeworlds Docker server by @luzifer +sv_map dm1 +sv_scorelimit 20 +sv_timelimit 10 +sv_gametype dm +#sv_rcon_password remember +sv_motd Teeworlds Docker server by @luzifer +sv_max_clients 16 +sv_spectator_slots 10 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..a7b95b5 --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if ! [ -e /data/config.cfg ]; then + cp /opt/config.dist.cfg /data/config.cfg +fi + +exec /opt/teeworlds/teeworlds_srv -f /data/config.cfg