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.
This commit is contained in:
2026-04-10 16:15:05 -04:00
parent 4fac9570ec
commit 5fdfe67f2f

View File

@@ -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