Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM ubuntu:16.04
ENV TSV=3.0.13.8
RUN DEBIAN_FRONTEND=noninteractive \
apt-get -y update && \
apt-get -y install bzip2 && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get autoremove -y && \
apt-get clean
ADD http://dl.4players.de/ts/releases/${TSV}/teamspeak3-server_linux_amd64-${TSV}.tar.bz2 ./
RUN tar jxf teamspeak3-server_linux_amd64-$TSV.tar.bz2 && \
mv teamspeak3-server_linux_amd64 /opt/teamspeak && \
rm teamspeak3-server_linux_amd64-$TSV.tar.bz2
ADD ./scripts/start /start
RUN chmod +x /start
EXPOSE 9987/udp
EXPOSE 30033
EXPOSE 10011
RUN useradd teamspeak && mkdir /data && chown teamspeak:teamspeak /data
VOLUME ["/data"]
USER teamspeak
CMD ["/start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.