From 2c17edd74c0405af5157bdd6220d934eaff88275 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 19 Nov 2026 21:43:50 +0100 Subject: [PATCH] docs(docker): the entrypoint drops to node with setpriv, say so beside its copy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eca051954..3b831a89e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -173,8 +173,8 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ # carrying quotes does not survive that round-trip (the container then dies with # a shell syntax error before Node starts). A CMD of one bare token does. COPY server/scripts/entrypoint.sh /usr/local/bin/trek-entrypoint -# Root-owned on purpose — this is what calls gosu, so it runs before the drop to -# node. chmod is explicit because a checkout on Windows carries no exec bit. +# Root-owned on purpose: it runs as root and drops to node itself, with setpriv. +# chmod is explicit because a checkout on Windows carries no exec bit. RUN chmod 0755 /usr/local/bin/trek-entrypoint ENTRYPOINT ["dumb-init", "--"]