mirror of
https://github.com/luzifer-docker/teeworlds.git
synced 2024-11-08 12:40:02 +00:00
Teeworlds Server v0.6.3
This commit is contained in:
commit
b5c14c4a66
3 changed files with 36 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM debian
|
||||
|
||||
MAINTAINER Knut Ahlers <knut@luzifer.io>
|
||||
|
||||
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 ["--"]
|
9
config.dist.cfg
Normal file
9
config.dist.cfg
Normal file
|
@ -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
|
7
start.sh
Executable file
7
start.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue