Skip to content

Instantly share code, notes, and snippets.

@javilobo8
Created August 27, 2017 12:55
Show Gist options
  • Save javilobo8/5cc0f4dfbabf3ff39a0ff713cbf89eb7 to your computer and use it in GitHub Desktop.
Save javilobo8/5cc0f4dfbabf3ff39a0ff713cbf89eb7 to your computer and use it in GitHub Desktop.
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