3 ms·
This is a great use case for tini[0]. Try this, after installing the tini binary to /sbin: ENTRYPOINT ["/sbin/tini", "--"] CMD ["node", "/path/to/main/proc
by nicholasjarnold 5y ago
This is a great use case for tini[0]. Try this, after installing the tini binary to /sbin:
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["node", "/path/to/main/process.js"]
[0]: https://github.com/krallin/tini https://github.com/krallin/tini
edit: formatting, sorry.
- remram 5y agoI think this is built into docker now: https://docs.docker.com/engine/reference/run/#specify-an-init-process https://docs.docker.com/engine/reference/run/#specify-an-ini... If you use Kubernetes then you have to add tini for now (https://github.com/kubernetes/kubernetes/issues/84210 https://github.com/kubernetes/kubernetes/issues/84210)