From 7542bc598ce63e60009fdfb01cb9ef6ce6f4e2b1 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Fri, 11 Jul 2025 16:25:27 +0100 Subject: [PATCH] Convert CMD instructions to exec form for proper signal handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated 6 Dockerfiles to use JSON array syntax for CMD - Ensures tail process runs as PID 1 and receives signals properly - Improves container shutdown behavior and signal forwarding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- test/Dockerfile-bash4-0 | 2 +- test/Dockerfile-bash4-2 | 2 +- test/Dockerfile-bash5-0 | 2 +- test/Dockerfile-centos7-dynu | 2 +- test/Dockerfile-ubuntu-acmedns | 2 +- test/Dockerfile-ubuntu-dynu | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Dockerfile-bash4-0 b/test/Dockerfile-bash4-0 index f732258..8147eca 100644 --- a/test/Dockerfile-bash4-0 +++ b/test/Dockerfile-bash4-0 @@ -31,4 +31,4 @@ RUN /bats-core/install.sh /usr/local # Use supervisord to run nginx in the background COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ] diff --git a/test/Dockerfile-bash4-2 b/test/Dockerfile-bash4-2 index 795ee61..90b6948 100644 --- a/test/Dockerfile-bash4-2 +++ b/test/Dockerfile-bash4-2 @@ -31,4 +31,4 @@ RUN /bats-core/install.sh /usr/local # Use supervisord to run nginx in the background COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ] diff --git a/test/Dockerfile-bash5-0 b/test/Dockerfile-bash5-0 index 128e615..27e6453 100644 --- a/test/Dockerfile-bash5-0 +++ b/test/Dockerfile-bash5-0 @@ -31,4 +31,4 @@ RUN /bats-core/install.sh /usr/local # Use supervisord to run nginx in the background COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ] diff --git a/test/Dockerfile-centos7-dynu b/test/Dockerfile-centos7-dynu index 074a0a2..46a413f 100644 --- a/test/Dockerfile-centos7-dynu +++ b/test/Dockerfile-centos7-dynu @@ -30,4 +30,4 @@ RUN /bats-core/install.sh /usr/local EXPOSE 80 443 # Run eternal loop - for testing -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ] diff --git a/test/Dockerfile-ubuntu-acmedns b/test/Dockerfile-ubuntu-acmedns index db0320a..55241a8 100644 --- a/test/Dockerfile-ubuntu-acmedns +++ b/test/Dockerfile-ubuntu-acmedns @@ -36,4 +36,4 @@ RUN git clone https://github.com/bats-core/bats-assert /bats-assert RUN /bats-core/install.sh /usr/local # Run eternal loop - for testing -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ] diff --git a/test/Dockerfile-ubuntu-dynu b/test/Dockerfile-ubuntu-dynu index 8f655b5..d2a42cd 100644 --- a/test/Dockerfile-ubuntu-dynu +++ b/test/Dockerfile-ubuntu-dynu @@ -33,4 +33,4 @@ RUN git clone https://github.com/bats-core/bats-assert /bats-assert RUN /bats-core/install.sh /usr/local # Run eternal loop - for testing -CMD tail -f /dev/null +CMD [ "tail", "-f", "/dev/null" ]