From 874b9616801848e30b7ca4317eade493c3036655 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 26 Jan 2023 16:02:50 +0100 Subject: [PATCH] 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. --- .github/container/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile index 9c5b2bfa0..5034616b8 100644 --- a/.github/container/Dockerfile +++ b/.github/container/Dockerfile @@ -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 \