fix: Add tini to prevent zombie procs
gitea/printnatura/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2025-03-10 09:42:37 +00:00
parent ec798d6363
commit 0a044ccb22
1 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,11 @@ COPY ctzcls-cups_1.1.0-2_amd64.deb /tmp/
RUN chmod a+x /tmp/ctzcls-cups_1.1.0-2_amd64.deb \
&& dpkg -i /tmp/ctzcls-cups_1.1.0-2_amd64.deb
# Fix defunct processeses: https://github.com/jenkinsci/docker-inbound-agent/issues/51
ENV TINI_VERSION v0.19.0
RUN wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \
&& chmod 755 /tini
# Printnatura
WORKDIR /printnatura
@ -40,5 +45,5 @@ COPY \
./
COPY sql sql
ENTRYPOINT ["/printnatura/entrypoint.sh"]
ENTRYPOINT ["/tini", "--", "/printnatura/entrypoint.sh"]
CMD ["node", "main.js"]