26 lines
891 B
Docker
26 lines
891 B
Docker
FROM gitea.fithwum.tech/fithwum/debian-base:bookworm
|
|
LABEL maintainer="fithwum"
|
|
|
|
# URL's for files
|
|
ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/teamspeak-server/raw/branch/main/debian/files/Install_Script.sh
|
|
|
|
# Install dependencies and folder creation
|
|
RUN apt-get -y update && apt-get autoclean && apt-get autoremove \
|
|
&& apt-get install -y --no-install-recommends nano bzip2 jq \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /ts3server /ts3temp /ts3temp/serverfiles \
|
|
&& chmod 777 -R /ts3server /ts3temp \
|
|
&& chown 99:100 -R /ts3server /ts3temp
|
|
|
|
RUN wget --no-cache "${INSTALL_SCRIPT}" -O /ts3temp/Install_Script.sh \
|
|
&& 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/bash", "./ts3temp/Install_Script.sh" ]
|