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