forked from overshard/docker-teamspeak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (51 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
60
61
62
63
# -----------------------------------------------------------------------------
# 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
FROM ubuntu:20.04
#image label
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/bufanda/docker-teamspeak" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0-rc1"
# Set the Teamspeak version to download
ENV TSV=3.13.7
# Download and install everything from the repos.
# hadolint ignore=DL3008
RUN DEBIAN_FRONTEND=noninteractive \
apt-get -y update && \
apt-get -y install --no-install-recommends 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 https://files.teamspeak-services.com/releases/server/${TSV}/teamspeak3-server_linux_amd64-${TSV}.tar.bz2 /
COPY CHECKSUMS /
RUN sha256sum -c CHECKSUMS && \
mkdir -p /opt/teamspeak && \
tar jxf teamspeak3-server_linux_amd64-$TSV.tar.bz2 -C /opt/teamspeak --strip-components=1 && \
rm teamspeak3-server_linux_amd64-$TSV.tar.bz2
# Load in all of our config files.
COPY ./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 && \
chown -R teamspeak:teamspeak /opt/teamspeak
VOLUME ["/data"]
USER teamspeak
CMD ["/start"]