summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-09-07 11:43:34 +0200
committerBadlop <badlop@process-one.net>2022-09-07 13:58:56 +0200
commit14cced0bad41e819f53dba79fb48b5660c21d4d4 (patch)
treea69c7f7ff368fd7e6b3fd893fafdbf7fbd960122
parentSimplify recent commit (thanks to Simon Lipp)(#3894) (diff)
Container: No need to search for the ejabberdctl binary
-rw-r--r--.github/container/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile
index 4f4b7897..a9f1c2e2 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 \