From f8b5914144ba8c85065cdca6e649315d81d7d287 Mon Sep 17 00:00:00 2001 From: salty Date: Sun, 6 Mar 2022 08:44:12 +0100 Subject: [PATCH] Dockerfile: Added tini. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d0256ffc..4962a53b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ FROM python:3.9-slim +ENV TINI_VERSION v0.19.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini +RUN chmod +x /tini RUN echo "**** install system packages ****" \ && apt-get update \ && apt-get upgrade -y --no-install-recommends \ @@ -12,4 +15,5 @@ RUN echo "**** install python packages ****" \ && rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/* COPY . / VOLUME /config -ENTRYPOINT ["python3", "plex_meta_manager.py"] +ENTRYPOINT ["/tini", "-s", "--"] +CMD ["python3", "plex_meta_manager.py"]