mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-12-20 14:41:17 +00:00
Add dumb-init entrypoint
to allow for clean shutdown
This commit is contained in:
parent
92b5d44110
commit
0bef82b1e9
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ ENV TEAMSPEAK_VERSION=3.13.7 \
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
|
||||||
RUN apt-get update \
|
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 \
|
&& 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" \
|
"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 - \
|
&& 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)
|
# 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"]
|
VOLUME ["/teamspeak3"]
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
CMD ["/opt/docker-ts3.sh"]
|
CMD ["/opt/docker-ts3.sh"]
|
||||||
|
|
||||||
# Expose the Standard TS3 port, for files, for serverquery
|
# Expose the Standard TS3 port, for files, for serverquery
|
||||||
|
|
Loading…
Reference in a new issue