Erlang cluster on Kubernetes: pid zero

22 Dec 2022 18:13

Erlang doesn’t like running as pid 0 (usually the init process). I used tini to fix it.


RUN apk add --no-cache openssl && \
    apk add --no-cache ncurses-libs && \
    apk add --no-cache libstdc++

# Use 'tini' to avoid Erlang running as PID 0.
RUN apk add --no-cache tini


ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/erlclu/bin/erlclu", "foreground"]