mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-09 12:30:01 +00:00
29 lines
1.2 KiB
Docker
29 lines
1.2 KiB
Docker
FROM debian:stretch
|
|
|
|
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
|
|
|
# Get the SHA256 from https://www.teamspeak.com/en/downloads#server
|
|
ENV TEAMSPEAK_VERSION=3.9.0 \
|
|
TEAMSPEAK_SHA256=4b945e9216b7627b015b47b6233f3a55c74e4d74701ae0aecf88f811fa098e99
|
|
|
|
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
|
|
RUN apt-get update \
|
|
&& apt-get install -y curl bzip2 ca-certificates --no-install-recommends \
|
|
&& curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \
|
|
"https://files.teamspeak-services.com/releases/server/${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
|
|
|
|
# Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups)
|
|
VOLUME ["/teamspeak3"]
|
|
|
|
CMD ["/opt/docker-ts3.sh"]
|
|
|
|
# Expose the Standard TS3 port, for files, for serverquery
|
|
EXPOSE 9987/udp 30033 10011
|