From 3ef00bd2161b3e30f3729e05254c677ee8b9807e Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sat, 11 Nov 2023 10:31:42 +0100 Subject: [PATCH] add tini to bun --- bun/canary/Dockerfile | 9 ++++++--- bun/latest/Dockerfile | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bun/canary/Dockerfile b/bun/canary/Dockerfile index 5078d5d..551d9d0 100644 --- a/bun/canary/Dockerfile +++ b/bun/canary/Dockerfile @@ -12,6 +12,9 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -ENTRYPOINT [] -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file diff --git a/bun/latest/Dockerfile b/bun/latest/Dockerfile index 57cd00e..c5f7010 100644 --- a/bun/latest/Dockerfile +++ b/bun/latest/Dockerfile @@ -12,6 +12,9 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -ENTRYPOINT [] -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"]