25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Container: No need to search for the ejabberdctl binary

This commit is contained in:
Badlop 2022-09-07 11:43:34 +02:00
parent 17a5835143
commit 14cced0bad

View File

@ -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 \