From 7e312077e771d12071b3bfd606cef7dd6e6044d4 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 31 May 2026 12:12:45 -0500 Subject: [PATCH] fix(docker): disable openssh s6 service in Dockerfile Bake the noop script directly into the image layer so openssh never starts. We use external SSH (port 2222) via host networking, not the container's sshd. Fixes: #372 Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 43926d2b0b..6cf66566c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,6 +77,9 @@ RUN addgroup \ COPY --from=build-env /tmp/local / COPY --from=build-env /go/src/code.mokoconsulting.tech/MokoConsulting/MokoGitea/gitea /app/gitea/gitea +# Disable openssh s6 service — we use external SSH (port 2222 via host). +RUN printf '#!/bin/sh\nexec sleep infinity\n' > /etc/s6/openssh/run && chmod 755 /etc/s6/openssh/run + ENV USER=git ENV GITEA_CUSTOM=/data/gitea -- 2.52.0