teamspeak3/Dockerfile

30 lines
1.1 KiB
Text
Raw Normal View History

FROM debian:stretch
2014-04-10 13:14:12 +00:00
LABEL maintainer Knut Ahlers <knut@ahlers.me>
2014-04-08 18:50:26 +00:00
# Get the SHA256 from https://www.teamspeak.com/en/downloads#server
ENV TEAMSPEAK_VERSION=3.2.0 \
TEAMSPEAK_SHA256=f1e267334e8863342e8eb90ae22203b761b54d9d4400a25ed1fd34fce2187f57
2014-04-10 13:14:12 +00:00
RUN set -ex \
&& apt-get update \
&& apt-get install -y curl bzip2 ca-certificates --no-install-recommends \
&& curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \
"http://dl.4players.de/ts/releases/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2" \
&& 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 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
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
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