processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.03k stars 1.5k forks source link

Dockerfile: Detect runtime dependencies automatically #4019

Closed sando38 closed 1 year ago

sando38 commented 1 year ago

Hi @badlop

thought this little change may be interesting for you as well. The Dockerfile detects the required runtime dependencies automatically and installs them in the runtime stage. This change only affects METHOD=direct.

libcap2 and tini can't be auto-detected. libcap2 has been renamed in Alpine version 3.17, hence the Dockerfile is not compatible with Alpine versions <3.17

I have tested it on my machine without any obvious errors, but it would be great if you could check the build result as well if you consider to merge it. We could adapt this also in processone/docker-ejabberd.

Thanks and best regards!

coveralls commented 1 year ago

Coverage Status

Coverage: 33.131% (+0.002%) from 33.128% when pulling b2107e5abb85fd5835d9014962e9d7e2826e61e4 on sando38:master into 99e51a2123fb92facbcd11009f23a80189dd5356 on processone:master.