-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile.debian
33 lines (27 loc) · 1.21 KB
/
Dockerfile.debian
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
# rebased/repackaged base image that only updates existing packages
FROM mbentley/debian:bookworm
LABEL maintainer="Matt Bentley <[email protected]>"
ENV TS_DIRECTORY=/opt/teamspeak
# for cache busting
ARG TS_SERVER_VER
ARG DEBIAN_FRONTEND=noninteractive
# install the latest teamspeak
RUN apt-get update &&\
apt-get install -y --no-install-recommends bzip2 ca-certificates gosu locales tini w3m wget && rm -rf /var/lib/apt/lists/* &&\
TS_SERVER_VER="$(w3m -dump https://www.teamspeak.com/downloads | grep -m 1 'Server 64-bit ' | awk '{print $NF}')" &&\
wget -nv "https://files.teamspeak-services.com/releases/server/${TS_SERVER_VER}/teamspeak3-server_linux_amd64-${TS_SERVER_VER}.tar.bz2" -O /tmp/teamspeak.tar.bz2 &&\
tar jxf /tmp/teamspeak.tar.bz2 -C /opt &&\
mv /opt/teamspeak3-server_* "${TS_DIRECTORY}" &&\
rm /tmp/teamspeak.tar.bz2 &&\
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen &&\
locale-gen &&\
apt-get purge -y bzip2 w3m wget &&\
apt-get autoremove -y &&\
rm -rf /var/lib/apt/lists/*
# set the locale
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
COPY entrypoint.sh /entrypoint.sh
EXPOSE 9987/udp 10011 30033 41144
ENTRYPOINT ["/entrypoint.sh"]