teamspeak3/Dockerfile

51 lines
1.9 KiB
Text
Raw Normal View History

2014-04-10 13:14:12 +00:00
###############################################
# Ubuntu with added Teamspeak 3 Server.
# Uses SQLite Database on default.
###############################################
# Using latest Ubuntu image as base
2014-04-08 18:50:26 +00:00
FROM ubuntu
2014-04-10 13:14:12 +00:00
MAINTAINER Alex
## Set some variables for override.
2014-04-10 13:26:09 +00:00
# Download Link of TS3 Server
2014-04-08 18:50:26 +00:00
ENV TEAMSPEAK_URL http://dl.4players.de/ts/releases/3.0.10.3/teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
2014-04-10 13:14:12 +00:00
# Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups)
2014-04-11 14:09:10 +00:00
VOLUME ["/teamspeak3"]
2014-04-10 13:14:12 +00:00
# Update app-get index and install curl to download TS3 file.
2014-04-08 18:50:26 +00:00
RUN apt-get update && apt-get install -y curl
2014-04-10 13:35:11 +00:00
# Download TS3 file and extract it into /opt.
2014-04-11 13:14:34 +00:00
RUN cd /opt && \
curl -sL ${TEAMSPEAK_URL} | tar xz
2014-04-10 13:14:12 +00:00
2014-04-11 13:40:11 +00:00
# create symlink for the sqlite db
# if we found a ts3server.sqlitedb create a symlink
2014-04-11 13:43:47 +00:00
#RUN [ -f /teamspeak3/ts3server.sqlitedb ] && \
# ln -s /teamspeak3/ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/ts3server.sqlitedb || \
# echo "ts3ser.sqlitedb not found. Will be created in TS3-Folder.Not backuped!!!"
2014-04-11 12:59:45 +00:00
#RUN cd /teamspeak3 && ln -s ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/ts3server.sqlitedb
2014-04-11 09:22:06 +00:00
2014-04-11 13:40:11 +00:00
# symlink for files-dir
2014-04-11 14:09:10 +00:00
#RUN mkdir -p /teamspeak3/files && \
# chmod 777 /teamspeak3/files
2014-04-11 13:43:47 +00:00
# ln -s /teamspeak3/files /opt/teamspeak3-server_linux-amd64/files
2014-04-10 13:29:27 +00:00
2014-04-11 12:59:45 +00:00
# TODO Use CMD to set some defaults, for example mapping some files/directorys to the injected volume.
2014-04-11 13:14:34 +00:00
#CMD ["logpath='/teamspeak3/logs/'"]
# licensepath='/teamspeak3/' inifile='/teamspeak3/ts3server.ini' "]
2014-04-10 13:14:12 +00:00
# Specify an entrypoint because this container should act like a isolated "application" and only serve TS3.
2014-04-11 13:14:34 +00:00
ENTRYPOINT /opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh \
query_ip_whitelist="/teamspeak3/query_ip_whitelist.txt" \
query_ip_backlist="/teamspeak3/query_ip_blacklist.txt" \
logpath="/teamspeak3/logs/" \
licensepath="/teamspeak3/"
2014-04-08 18:50:26 +00:00
2014-04-10 13:26:09 +00:00
# Expose the Standard TS3 port.
2014-04-08 18:50:26 +00:00
EXPOSE 9987/udp