2023-04-26 20:12:14 +00:00
|
|
|
FROM debian:bullseye
|
2014-04-10 13:14:12 +00:00
|
|
|
|
2018-01-07 00:33:09 +00:00
|
|
|
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
2014-04-08 18:50:26 +00:00
|
|
|
|
2018-02-26 21:34:33 +00:00
|
|
|
# Get the SHA256 from https://www.teamspeak.com/en/downloads#server
|
2022-07-12 21:02:50 +00:00
|
|
|
ENV TEAMSPEAK_VERSION=3.13.7 \
|
|
|
|
TEAMSPEAK_SHA256=775a5731a9809801e4c8f9066cd9bc562a1b368553139c1249f2a0740d50041e
|
2014-04-10 13:14:12 +00:00
|
|
|
|
2018-10-29 16:16:33 +00:00
|
|
|
RUN apt-get update \
|
2023-04-26 20:12:14 +00:00
|
|
|
&& apt-get install -y curl bzip2 ca-certificates dumb-init --no-install-recommends \
|
2018-01-07 00:33:09 +00:00
|
|
|
&& curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \
|
2023-04-26 20:12:14 +00:00
|
|
|
"https://files.teamspeak-services.com/releases/server/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2" \
|
2018-01-07 00:33:09 +00:00
|
|
|
&& echo "${TEAMSPEAK_SHA256} *teamspeak3-server_linux-amd64.tar.bz2" | sha256sum -c - \
|
|
|
|
&& tar -C /opt -xjf teamspeak3-server_linux-amd64.tar.bz2 \
|
|
|
|
&& rm teamspeak3-server_linux-amd64.tar.bz2 \
|
|
|
|
&& apt-get purge -y curl bzip2 && apt-get autoremove -y \
|
2018-03-10 11:29:38 +00:00
|
|
|
&& apt-get clean \
|
2023-04-26 20:12:14 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& groupadd -g 1000 teamspeak \
|
|
|
|
&& useradd -u 1000 -g 1000 teamspeak \
|
|
|
|
&& chown -R teamspeak:teamspeak /opt/teamspeak3-server_linux_amd64
|
2015-10-05 01:03:49 +00:00
|
|
|
|
2018-03-10 11:29:38 +00:00
|
|
|
COPY docker-ts3.sh /opt/docker-ts3.sh
|
2014-04-08 18:50:26 +00:00
|
|
|
|
2014-04-10 13:14:12 +00:00
|
|
|
# Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups)
|
2014-04-11 14:09:10 +00:00
|
|
|
VOLUME ["/teamspeak3"]
|
2014-04-10 13:14:12 +00:00
|
|
|
|
2023-04-26 20:12:14 +00:00
|
|
|
USER teamspeak
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
2018-01-07 00:33:09 +00:00
|
|
|
CMD ["/opt/docker-ts3.sh"]
|
2014-04-08 18:50:26 +00:00
|
|
|
|
2017-03-25 21:02:38 +00:00
|
|
|
# Expose the Standard TS3 port, for files, for serverquery
|
|
|
|
EXPOSE 9987/udp 30033 10011
|