Dockerfile: use tini to reap zombie processes

This commit is contained in:
fflorent 2024-05-29 08:40:55 +02:00 committed by jordigh
parent 4358ff8ead
commit a304b22623

View File

@ -79,7 +79,7 @@ FROM node:18-buster-slim
# Install pgrep for managing gvisor processes. # Install pgrep for managing gvisor processes.
RUN \ RUN \
apt-get update && \ apt-get update && \
apt-get install -y --no-install-recommends libexpat1 libsqlite3-0 procps && \ apt-get install -y --no-install-recommends libexpat1 libsqlite3-0 procps tini && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Keep all storage user may want to persist in a distinct directory # Keep all storage user may want to persist in a distinct directory
@ -151,4 +151,5 @@ ENV \
EXPOSE 8484 EXPOSE 8484
ENTRYPOINT ["/usr/bin/tini", "-s", "--"]
CMD ["./sandbox/run.sh"] CMD ["./sandbox/run.sh"]