From a9cc76f8d560959f25b08afd101653c5382e2064 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Mon, 8 Jun 2020 10:54:01 -0700 Subject: [PATCH] Create Dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a3c11a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM alpine:latest +MAINTAINER fithwum + +# URL's for files +ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/teamspeak-alpine/master/files/Install_Script.sh + +# Install dependencies and folder creation +RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar \ + && mkdir -p /ts3server /ts3temp /ts3temp/inifiles /ts3temp/serverfiles \ + && chmod 777 -R /ts3server /ts3temp \ + && chown 99:100 -R /ts3server /ts3temp +ADD "${INSTALL_SCRIPT}" /ts3temp +RUN chmod +x /ts3temp/Install_Script.sh + +# directory where data is stored +VOLUME /ts3server + +# 9987 default voice, 10011 server query, 30033 file transport +EXPOSE 9987/udp 10011/tcp 30033/tcp + +# Run command +CMD [ "/bin/sh", "/ts3temp/Install_Script.sh" ]