2014-04-10 13:14:12 +00:00
|
|
|
###############################################
|
2016-05-04 01:45:09 +00:00
|
|
|
# Ubuntu with added Teamspeak 3 Server.
|
2014-04-10 13:14:12 +00:00
|
|
|
# Uses SQLite Database on default.
|
|
|
|
###############################################
|
|
|
|
|
|
|
|
# Using latest Ubuntu image as base
|
2016-05-04 01:45:09 +00:00
|
|
|
FROM ubuntu:16.04
|
2014-04-08 18:50:26 +00:00
|
|
|
|
2014-04-10 13:14:12 +00:00
|
|
|
MAINTAINER Alex
|
|
|
|
|
2015-10-05 01:03:49 +00:00
|
|
|
RUN apt-get update \
|
2016-05-04 01:45:09 +00:00
|
|
|
&& apt-get install -y wget bzip2 --no-install-recommends \
|
2015-10-05 01:03:49 +00:00
|
|
|
&& 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
|
2017-07-12 11:23:09 +00:00
|
|
|
ENV TEAMSPEAK_VERSION 3.0.13.7
|
|
|
|
ENV TEAMSPEAK_SHA256 b5b142c70859efdaffe50ec0a94ce54b32b3f232507fd7a52457c961a00f8b0d
|
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.
|
2016-03-10 03:59:17 +00:00
|
|
|
RUN wget -O teamspeak3-server_linux-amd64.tar.bz2 http://dl.4players.de/ts/releases/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2 \
|
2016-05-29 11:05:48 +00:00
|
|
|
&& echo "${TEAMSPEAK_SHA256} *teamspeak3-server_linux-amd64.tar.bz2" | sha256sum -c - \
|
2016-03-10 03:59:17 +00:00
|
|
|
&& tar -C /opt -xjf teamspeak3-server_linux-amd64.tar.bz2 \
|
|
|
|
&& rm teamspeak3-server_linux-amd64.tar.bz2
|
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
|
|
|
|
2017-03-25 18:31:12 +00:00
|
|
|
CMD ["/opt/scripts/docker-ts3.sh"]
|
2014-04-08 18:50:26 +00:00
|
|
|
|
2017-03-25 21:02:38 +00:00
|
|
|
# Expose the Standard TS3 port, for files, for serverquery
|
|
|
|
EXPOSE 9987/udp 30033 10011
|