This repository has been archived by the owner on Jun 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile
50 lines (41 loc) · 1.48 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -----------------------------------------------------------------------------
# docker-teamspeak
#
# Builds a basic docker image that can run TeamSpeak
# (http://teamspeak.com/).
#
# Authors: Isaac Bythewood, Jamie Tanna
# Updated: January 6th, 2017
# Require: Docker (http://www.docker.io/)
# -----------------------------------------------------------------------------
# Base system is Ubuntu 16.04
FROM ubuntu:16.04
# Set the Teamspeak version to download
ENV TSV=3.2.0
# Download and install everything from the repos.
RUN DEBIAN_FRONTEND=noninteractive \
apt-get -y update && \
apt-get -y install bzip2 ca-certificates && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get autoremove -y && \
apt-get clean
# Download and install TeamSpeak 3
# Add secondary/backup server as well -- allow users to choose in case of blacklisting.
ADD http://dl.4players.de/ts/releases/${TSV}/teamspeak3-server_linux_amd64-${TSV}.tar.bz2 ./
ADD CHECKSUMS ./
RUN sha256sum -c CHECKSUMS
RUN tar jxf teamspeak3-server_linux_amd64-$TSV.tar.bz2 && \
mv teamspeak3-server_linux_amd64 /opt/teamspeak && \
rm teamspeak3-server_linux_amd64-$TSV.tar.bz2
# Load in all of our config files.
ADD ./scripts/start /start
# Fix all permissions
RUN chmod +x /start
# /start runs it.
EXPOSE 9987/udp
EXPOSE 30033
EXPOSE 10011
RUN useradd teamspeak && mkdir /data && chown teamspeak:teamspeak /data
VOLUME ["/data"]
USER teamspeak
CMD ["/start"]