diff options
| author | 2025-11-15 21:52:09 +0100 | |
|---|---|---|
| committer | 2025-11-15 21:52:09 +0100 | |
| commit | 7136fcd9959f53e0b1f47339d69263e30f1d207f (patch) | |
| tree | a02312574253ff4d0579a405cfc7b6f301cfa228 /Dockerfile | |
| parent | 2d87065deb00d2b74c93b444b1b770451c20de40 (diff) | |
Added proper init that reaps zombies before they accumulate
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,7 +2,7 @@ ARG BASE_IMAGE=alpine:latest FROM ${BASE_IMAGE} -RUN apk add --no-cache openssh-server fish git sudo +RUN apk add --no-cache openssh-server fish git sudo tini # default uid for git user who has access to all repos ENV GIT_UID=1000 @@ -23,7 +23,10 @@ RUN chmod 755 /usr/local/bin/git-run COPY src/version /usr/local/bin/ COPY src/banner /usr/local/bin/ -ENTRYPOINT ["/usr/local/bin/init"] +# we need a init that reaps zombies +ENTRYPOINT ["tini"] +# setups users and starts sshd daemon +CMD ["/usr/local/bin/init"] ARG APP_VERSION |
