From baf272435a557eaa98aa02e9b663b0b59a370942 Mon Sep 17 00:00:00 2001 From: Quinten Date: Wed, 9 Aug 2023 19:24:33 +0200 Subject: [PATCH] Use SIGINT as stop signal --- bot/bastion/Dockerfile | 2 ++ bot/red/Dockerfile | 2 ++ bot/sinusbot/Dockerfile | 2 ++ dart/2.17/Dockerfile | 2 ++ dart/2.18/Dockerfile | 2 ++ dart/2.19/Dockerfile | 2 ++ dotnet/2.1/Dockerfile | 2 ++ dotnet/3.1/Dockerfile | 2 ++ dotnet/5/Dockerfile | 2 ++ dotnet/6/Dockerfile | 2 ++ dotnet/7/Dockerfile | 2 ++ games/altv/Dockerfile | 2 ++ games/samp/Dockerfile | 2 ++ games/source/Dockerfile | 2 ++ java/11/Dockerfile | 2 ++ java/11j9/Dockerfile | 2 ++ java/16/Dockerfile | 2 ++ java/16j9/Dockerfile | 2 ++ java/17/Dockerfile | 2 ++ java/19/Dockerfile | 2 ++ java/8/Dockerfile | 2 ++ java/8j9/Dockerfile | 2 ++ nodejs/12/Dockerfile | 1 + nodejs/14/Dockerfile | 2 ++ nodejs/16/Dockerfile | 2 ++ nodejs/17/Dockerfile | 2 ++ nodejs/18/Dockerfile | 2 ++ nodejs/19/Dockerfile | 2 ++ nodejs/20/Dockerfile | 2 ++ oses/alpine/Dockerfile | 2 ++ oses/debian/Dockerfile | 2 ++ oses/ubuntu/Dockerfile | 2 ++ rust/1.31/Dockerfile | 2 ++ rust/1.56/Dockerfile | 2 ++ rust/1.60/Dockerfile | 2 ++ steamcmd/debian/Dockerfile | 2 ++ steamcmd/dotnet/Dockerfile | 2 ++ steamcmd/ubuntu/Dockerfile | 2 ++ voice/mumble/Dockerfile | 2 ++ voice/teaspeak/Dockerfile | 2 ++ 40 files changed, 79 insertions(+) diff --git a/bot/bastion/Dockerfile b/bot/bastion/Dockerfile index a7c25fe..f360d57 100644 --- a/bot/bastion/Dockerfile +++ b/bot/bastion/Dockerfile @@ -16,6 +16,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/bot/red/Dockerfile b/bot/red/Dockerfile index 30fc529..7776860 100644 --- a/bot/red/Dockerfile +++ b/bot/red/Dockerfile @@ -47,6 +47,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/bot/sinusbot/Dockerfile b/bot/sinusbot/Dockerfile index 5e45202..388b34d 100644 --- a/bot/sinusbot/Dockerfile +++ b/bot/sinusbot/Dockerfile @@ -21,6 +21,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dart/2.17/Dockerfile b/dart/2.17/Dockerfile index 00ed7f6..ef05342 100644 --- a/dart/2.17/Dockerfile +++ b/dart/2.17/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dart/2.18/Dockerfile b/dart/2.18/Dockerfile index 0642886..eda747a 100644 --- a/dart/2.18/Dockerfile +++ b/dart/2.18/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dart/2.19/Dockerfile b/dart/2.19/Dockerfile index e479775..c01b351 100644 --- a/dart/2.19/Dockerfile +++ b/dart/2.19/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dotnet/2.1/Dockerfile b/dotnet/2.1/Dockerfile index 7f6f1fd..58dcaff 100644 --- a/dotnet/2.1/Dockerfile +++ b/dotnet/2.1/Dockerfile @@ -17,6 +17,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dotnet/3.1/Dockerfile b/dotnet/3.1/Dockerfile index b8c57e5..18fa767 100644 --- a/dotnet/3.1/Dockerfile +++ b/dotnet/3.1/Dockerfile @@ -18,6 +18,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dotnet/5/Dockerfile b/dotnet/5/Dockerfile index a0ca5d6..5bafee2 100644 --- a/dotnet/5/Dockerfile +++ b/dotnet/5/Dockerfile @@ -17,6 +17,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dotnet/6/Dockerfile b/dotnet/6/Dockerfile index ccf8eed..9494f76 100644 --- a/dotnet/6/Dockerfile +++ b/dotnet/6/Dockerfile @@ -17,6 +17,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/dotnet/7/Dockerfile b/dotnet/7/Dockerfile index f4bed83..78a389a 100644 --- a/dotnet/7/Dockerfile +++ b/dotnet/7/Dockerfile @@ -17,6 +17,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index 67ea1cf..cd13464 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -27,6 +27,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/games/samp/Dockerfile b/games/samp/Dockerfile index 2222b13..0371afe 100644 --- a/games/samp/Dockerfile +++ b/games/samp/Dockerfile @@ -19,6 +19,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/games/source/Dockerfile b/games/source/Dockerfile index 072a925..a67e918 100644 --- a/games/source/Dockerfile +++ b/games/source/Dockerfile @@ -45,6 +45,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/11/Dockerfile b/java/11/Dockerfile index bdf4aca..e5db4d6 100644 --- a/java/11/Dockerfile +++ b/java/11/Dockerfile @@ -13,6 +13,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/11j9/Dockerfile b/java/11j9/Dockerfile index ff57bed..6845adf 100644 --- a/java/11j9/Dockerfile +++ b/java/11j9/Dockerfile @@ -11,6 +11,8 @@ ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/16/Dockerfile b/java/16/Dockerfile index 827c137..3bd2c3f 100644 --- a/java/16/Dockerfile +++ b/java/16/Dockerfile @@ -13,6 +13,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/16j9/Dockerfile b/java/16j9/Dockerfile index 3e37843..5f788ad 100644 --- a/java/16j9/Dockerfile +++ b/java/16j9/Dockerfile @@ -11,6 +11,8 @@ ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/17/Dockerfile b/java/17/Dockerfile index cc4207f..7385077 100644 --- a/java/17/Dockerfile +++ b/java/17/Dockerfile @@ -13,6 +13,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/19/Dockerfile b/java/19/Dockerfile index 53789ad..f89e51e 100644 --- a/java/19/Dockerfile +++ b/java/19/Dockerfile @@ -13,6 +13,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/8/Dockerfile b/java/8/Dockerfile index a80c737..6efba21 100644 --- a/java/8/Dockerfile +++ b/java/8/Dockerfile @@ -13,6 +13,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/java/8j9/Dockerfile b/java/8j9/Dockerfile index 99086fe..b528268 100644 --- a/java/8j9/Dockerfile +++ b/java/8j9/Dockerfile @@ -11,6 +11,8 @@ ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/12/Dockerfile b/nodejs/12/Dockerfile index 3d8482b..a0c1018 100644 --- a/nodejs/12/Dockerfile +++ b/nodejs/12/Dockerfile @@ -12,6 +12,7 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/nodejs/14/Dockerfile b/nodejs/14/Dockerfile index 89a1779..76e80f3 100644 --- a/nodejs/14/Dockerfile +++ b/nodejs/14/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/16/Dockerfile b/nodejs/16/Dockerfile index 67d85d3..eab82c9 100644 --- a/nodejs/16/Dockerfile +++ b/nodejs/16/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/17/Dockerfile b/nodejs/17/Dockerfile index 2cdbc7e..fdc0442 100644 --- a/nodejs/17/Dockerfile +++ b/nodejs/17/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 3e8b894..6b1bdc0 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/19/Dockerfile b/nodejs/19/Dockerfile index df181ee..84ad317 100644 --- a/nodejs/19/Dockerfile +++ b/nodejs/19/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index 916d3ad..028e920 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -12,6 +12,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/oses/alpine/Dockerfile b/oses/alpine/Dockerfile index 633f721..32eb44a 100644 --- a/oses/alpine/Dockerfile +++ b/oses/alpine/Dockerfile @@ -34,6 +34,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/sbin/tini", "-g", "--"] diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index 20f9c21..f47530b 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -29,6 +29,8 @@ RUN update-locale lang=en_US.UTF-8 \ WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/oses/ubuntu/Dockerfile b/oses/ubuntu/Dockerfile index 8f82496..aec60e1 100644 --- a/oses/ubuntu/Dockerfile +++ b/oses/ubuntu/Dockerfile @@ -23,6 +23,8 @@ RUN update-locale lang=en_US.UTF-8 \ WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/rust/1.31/Dockerfile b/rust/1.31/Dockerfile index ccc65bd..011c8b1 100644 --- a/rust/1.31/Dockerfile +++ b/rust/1.31/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/rust/1.56/Dockerfile b/rust/1.56/Dockerfile index 21bdf29..2a33e68 100644 --- a/rust/1.56/Dockerfile +++ b/rust/1.56/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/rust/1.60/Dockerfile b/rust/1.60/Dockerfile index 36d1ee1..3262022 100644 --- a/rust/1.60/Dockerfile +++ b/rust/1.60/Dockerfile @@ -10,6 +10,8 @@ USER container ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 85a8d18..0bcf8c9 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -23,6 +23,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/steamcmd/dotnet/Dockerfile b/steamcmd/dotnet/Dockerfile index 977b34a..e90ae75 100644 --- a/steamcmd/dotnet/Dockerfile +++ b/steamcmd/dotnet/Dockerfile @@ -30,6 +30,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/steamcmd/ubuntu/Dockerfile b/steamcmd/ubuntu/Dockerfile index 332241e..997e4f6 100644 --- a/steamcmd/ubuntu/Dockerfile +++ b/steamcmd/ubuntu/Dockerfile @@ -29,6 +29,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] diff --git a/voice/mumble/Dockerfile b/voice/mumble/Dockerfile index 46c4a72..f22b797 100644 --- a/voice/mumble/Dockerfile +++ b/voice/mumble/Dockerfile @@ -14,6 +14,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/sbin/tini", "-g", "--"] diff --git a/voice/teaspeak/Dockerfile b/voice/teaspeak/Dockerfile index 3480fc4..cc46233 100644 --- a/voice/teaspeak/Dockerfile +++ b/voice/teaspeak/Dockerfile @@ -48,6 +48,8 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container +STOPSIGNAL SIGINT + COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"]