From 4816a7a379ff87044600fab45b0b418850111921 Mon Sep 17 00:00:00 2001 From: Patrice Lopez Date: Fri, 26 Jan 2024 10:11:24 +0100 Subject: [PATCH] add tini back to docker images to avoid zombie apocalypse with kubernetes --- Dockerfile.crf | 6 ++++++ Dockerfile.delft | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Dockerfile.crf b/Dockerfile.crf index 1f09fce1c0..55d8fdca21 100644 --- a/Dockerfile.crf +++ b/Dockerfile.crf @@ -68,6 +68,12 @@ RUN apt-get update && \ apt-get -y --no-install-recommends install libxml2 libfontconfig && \ rm -rf /var/lib/apt/lists/* +# Add Tini +ENV TINI_VERSION v0.19.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini +RUN chmod +x /tini +ENTRYPOINT ["/tini", "-s", "--"] + WORKDIR /opt/grobid COPY --from=builder /opt/grobid . diff --git a/Dockerfile.delft b/Dockerfile.delft index 8728448841..7008e44e3d 100644 --- a/Dockerfile.delft +++ b/Dockerfile.delft @@ -74,6 +74,12 @@ RUN rm /etc/apt/sources.list.d/nvidia-ml.list RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb RUN dpkg -i cuda-keyring_1.0-1_all.deb +# Add Tini +ENV TINI_VERSION v0.19.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini +RUN chmod +x /tini +ENTRYPOINT ["/tini", "-s", "--"] + # install JRE, python and other dependencies RUN apt-get update && \ apt-get -y --no-install-recommends install apt-utils build-essential gcc libxml2 libfontconfig unzip curl \