forked from overshard/docker-teamspeak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine
70 lines (58 loc) · 1.95 KB
/
Dockerfile.alpine
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
64
65
66
67
68
69
70
# -----------------------------------------------------------------------------
# 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 alpine
FROM alpine:3.16
#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,DL3018
RUN apk update && \
apk add --no-cache \
bzip2 \
ca-certificates \
bash \
libstdc++ \
gcompat \
tzdata \
coreutils \
tar \
gzip \
xz \
&& rm -rf /var/cache/apk/*
# 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 addgroup -S teamspeak && adduser -S teamspeak -G teamspeak && \
mkdir /data && chown teamspeak:teamspeak /data && \
chown -R teamspeak:teamspeak /opt/teamspeak
VOLUME ["/data"]
USER teamspeak
CMD ["/start"]