teamspeak3/Dockerfile

41 lines
1.4 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
RUN apt-get update \
&& apt-get install -y wget --no-install-recommends \
&& rm -r /var/lib/apt/lists/*
2014-04-10 13:14:12 +00:00
## Set some variables for override.
2014-04-10 13:26:09 +00:00
# Download Link of TS3 Server
ENV TEAMSPEAK_VERSION 3.0.11.4
ENV TEAMSPEAK_SHA1 09e7fc2cb5dddf84f3356ddd555ad361f5854321
2014-04-08 18:50:26 +00:00
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
2014-04-10 13:35:11 +00:00
# Download TS3 file and extract it into /opt.
RUN wget -O teamspeak3-server_linux-amd64.tar.gz http://dl.4players.de/ts/releases/${TEAMSPEAK_VERSION}/teamspeak3-server_linux-amd64-${TEAMSPEAK_VERSION}.tar.gz \
&& echo "${TEAMSPEAK_SHA1} *teamspeak3-server_linux-amd64.tar.gz" | sha1sum -c - \
&& tar -C /opt -xzf teamspeak3-server_linux-amd64.tar.gz \
&& rm teamspeak3-server_linux-amd64.tar.gz
2014-04-15 12:59:00 +00:00
2014-04-15 12:04:04 +00:00
ADD /scripts/ /opt/scripts/
2014-04-15 12:21:14 +00:00
RUN chmod -R 774 /opt/scripts/
2014-04-15 12:04:04 +00:00
2014-04-15 12:13:50 +00:00
ENTRYPOINT ["/opt/scripts/docker-ts3.sh"]
2014-04-15 12:04:04 +00:00
#CMD ["-w", "/teamspeak3/query_ip_whitelist.txt", "-b", "/teamspeak3/query_ip_blacklist.txt", "-o", "/teamspeak3/logs/", "-l", "/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
# for files
EXPOSE 30033
# for ServerQuery
EXPOSE 10011