-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (33 loc) · 1.18 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
# -----------------------------------------------------------------------------
# docker-teamspeak
#
# Builds a basic docker image that can run TeamSpeak
# (http://teamspeak.com/).
#
# Authors: Isaac Bythewood, Mitchell Mohorovich
# Updated: Jan 1st, 2016
# Require: Docker (http://www.docker.io/)
# -----------------------------------------------------------------------------
# Base system is the LTS version of Ubuntu.
FROM ubuntu:14.04
# Set the Teamspeak version to download
ENV tsv=3.0.11.4
# Download and install everything from the repos.
RUN DEBIAN_FRONTEND=noninteractive \
apt-get -y update && \
apt-get -y upgrade
# Download and install TeamSpeak 3
ADD http://dl.4players.de/ts/releases/${tsv}/teamspeak3-server_linux-amd64-${tsv}.tar.gz ./
RUN tar zxf teamspeak3-server_linux-amd64-${tsv}.tar.gz; mv teamspeak3-server_linux-amd64 /opt/teamspeak; rm teamspeak3-server_linux-amd64-${tsv}.tar.gz
#Add user
RUN useradd -s /bin/bash teamspeak
# 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
VOLUME ["/data"]
CMD ["/start"]