Created
August 27, 2017 12:55
-
-
Save javilobo8/5cc0f4dfbabf3ff39a0ff713cbf89eb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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