diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile index 4f4b78970..a9f1c2e2a 100644 --- a/.github/container/Dockerfile +++ b/.github/container/Dockerfile @@ -63,6 +63,7 @@ RUN export PEM=/opt/ejabberd/conf/server.pem \ FROM alpine:3.15.4 ENV HOME=/opt/ejabberd +ARG VERSION=master RUN apk upgrade --update musl \ && apk add \ @@ -92,7 +93,7 @@ RUN echo -e \ \nexport CONFIG_DIR=/opt/ejabberd/conf \ \nexport LOGS_DIR=/opt/ejabberd/logs \ \nexport SPOOL_DIR=/opt/ejabberd/database \ - \nexec $(find /opt -name ejabberdctl) \"\$@\"" > /usr/local/bin/ejabberdctl \ + \nexec /opt/ejabberd-$VERSION/bin/ejabberdctl \"\$@\"" > /usr/local/bin/ejabberdctl \ && chmod +x /usr/local/bin/ejabberdctl RUN addgroup ejabberd -g 9000 \