diff options
author | terminaldweller <thabogre@gmail.com> | 2023-02-23 19:39:11 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2023-02-23 19:39:11 +0000 |
commit | a698108be5d7bd22c80444611ae429c6f192be27 (patch) | |
tree | 180c82a7a888358aa6bdf8cb45e5f7913f514347 /Dockerfile.debian | |
parent | update (diff) | |
download | docker-bitlbee-libpurple-a698108be5d7bd22c80444611ae429c6f192be27.tar.gz docker-bitlbee-libpurple-a698108be5d7bd22c80444611ae429c6f192be27.zip |
added mattermost
Diffstat (limited to 'Dockerfile.debian')
-rw-r--r-- | Dockerfile.debian | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile.debian b/Dockerfile.debian index 799c4c9..8302320 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -341,6 +341,28 @@ RUN echo SIGNAL=${SIGNAL} > /tmp/status \ # --- +FROM bitlbee-build as mattermost-build + +ARG MATTERMOST=1 +ARG MATTERMOST_VERSION=v2.1 + +RUN echo MATTERMOST=${MATTERMOST} > /tmp/status \ + && if [ ${MATTERMOST} -eq 1 ]; \ + then cd /tmp \ + && apt-get update \ + && apt-get install -y libjson-glib-dev libglib2.0-dev git make libmarkdown2-dev build-essential \ + && git clone https://github.com/EionRobb/purple-mattermost.git \ + && cd purple-mattermost \ + && git checkout ${MATTERMOST_VERSION} \ + && make -j$(nproc --ignore 2) \ + && make install \ + && strip /usr/lib/purple-2/libmattermost.so; \ + else mkdir -p /usr/lib/purple-2 \ + && ln -sf /nowhere /usr/lib/purple-2/libmattermost.so; \ + fi + +# --- + FROM bitlbee-build as icyque-build ARG ICYQUE=1 @@ -484,6 +506,9 @@ COPY --from=whatsapp-build /tmp/status /tmp/plugin/whatsapp COPY --from=lurch-build /usr/lib/purple-2/lurch.so /tmp/usr/lib/purple-2/lurch.so COPY --from=lurch-build /tmp/status /tmp/plugin/lurch +COPY --from=mattermost-build /usr/lib/purple-2/libmattermost.so /tmp/usr/lib/purple-2/libmattermost.so +COPY --from=mattermost-build /tmp/status /tmp/plugin/mattermost + RUN apt-get update \ && apt-get install -y --no-install-recommends findutils \ && find /tmp/ -type f -empty -delete \ |