From 5fdfe67f2f1d4c36f833e21dca3df9b490378469 Mon Sep 17 00:00:00 2001 From: anti Date: Fri, 10 Apr 2026 16:15:05 -0400 Subject: [PATCH] fix(cowrie): add missing COPY+chmod for entrypoint.sh in Dockerfile The entrypoint.sh was present in the build context but never COPYed into the image, causing 'stat /entrypoint.sh: no such file or directory' at container start. Added COPY+chmod before the USER decnet instruction so the script is installed as root and is executable by all users. --- templates/cowrie/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/cowrie/Dockerfile b/templates/cowrie/Dockerfile index 6e011ea..9e7ce84 100644 --- a/templates/cowrie/Dockerfile +++ b/templates/cowrie/Dockerfile @@ -12,6 +12,9 @@ RUN useradd -r -s /bin/false -d /opt decnet \ && rm -rf /var/lib/apt/lists/* \ && (find /usr/bin/ -maxdepth 1 -name 'python3*' -type f -exec setcap 'cap_net_bind_service+eip' {} \; 2>/dev/null || true) +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ CMD kill -0 1 || exit 1