Add dumb-init entrypoint

to allow for clean shutdown
This commit is contained in:
Thor77 2023-03-25 16:06:29 +01:00
parent 92b5d44110
commit 0bef82b1e9
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A

View File

@ -8,7 +8,7 @@ ENV TEAMSPEAK_VERSION=3.13.7 \
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install -y curl bzip2 ca-certificates --no-install-recommends \
&& apt-get install -y curl bzip2 ca-certificates dumb-init --no-install-recommends \
&& curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \
"https://files.teamspeak-services.com/releases/server/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2" \
&& echo "${TEAMSPEAK_SHA256} *teamspeak3-server_linux-amd64.tar.bz2" | sha256sum -c - \
@ -23,6 +23,7 @@ COPY docker-ts3.sh /opt/docker-ts3.sh
# Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups)
VOLUME ["/teamspeak3"]
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/opt/docker-ts3.sh"]
# Expose the Standard TS3 port, for files, for serverquery