Skip to content

Commit

Permalink
add tini back to docker images to avoid zombie apocalypse with kubern…
Browse files Browse the repository at this point in the history
…etes
  • Loading branch information
kermitt2 committed Jan 26, 2024
1 parent e14ce33 commit 4816a7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile.crf
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile.delft
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4816a7a

Please sign in to comment.