Container: Remove unused Mix stuff: ejabberd script and static COOKIE

Instead of including this file in the container with static content:
  /opt/ejabberd-master/releases/COOKIE
the cookie file will be generated by erlang in
  /opt/ejabberd/.erlang.cookie
or by ejabberdctl if ERLANG_COOKIE environment variable was provided.
This commit is contained in:
Badlop 2023-01-26 16:02:50 +01:00
parent 2c1ee698cc
commit 874b961680
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ RUN cp -p 'tools/captcha'*'.sh' "/opt/ejabberd-$VERSION/lib"
RUN [ ! -d .ejabberd-modules ] || cp -r .ejabberd-modules /opt/ejabberd/
RUN find "/opt/ejabberd-$VERSION/bin" -name 'ejabberd' -delete \
&& find "/opt/ejabberd-$VERSION/releases" -name 'COOKIE' -delete
RUN export PEM=/opt/ejabberd/conf/server.pem \
&& curl -o "/opt/ejabberd/conf/cacert.pem" 'https://curl.se/ca/cacert.pem' \
&& openssl req -x509 \