aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2021-09-18 20:04:07 +0000
committerezkrg <ezkrg@ezkrg.me>2021-09-18 20:04:07 +0000
commitc0a9fea085e7d79ac8a3cabd9a0be9b4b7097c8d (patch)
treea20d12b7809ed4f0eee9bab1118b51e90440c175
parentuse olm library from distrib (diff)
downloaddocker-bitlbee-libpurple-c0a9fea085e7d79ac8a3cabd9a0be9b4b7097c8d.tar.gz
docker-bitlbee-libpurple-c0a9fea085e7d79ac8a3cabd9a0be9b4b7097c8d.zip
try using whatsapp
-rw-r--r--Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index a38ad0c..a6e7208 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -327,6 +327,27 @@ RUN echo ICYQUE=${ICYQUE} > /tmp/status \
# ---
+FROM bitlbee-build as whatsapp-build
+
+ARG WHATSAPP=1
+ARG WHATSAPP_VERSION=438fae6
+
+RUN echo WHATSAPP=${WHATSAPP} > /tmp/status \
+ && if [ ${WHATSAPP} -eq 1 ]; \
+ then cd /tmp \
+ && apk add --update --no-cache go \
+ && git clone -n https://github.com/hoehermann/purple-gowhatsapp.git \
+ && cd purple-gowhatsapp \
+ && git checkout ${WHATSAPP_VERSION} \
+ && make \
+ && make install \
+ && strip /usr/lib/purple-2/libgowhatsapp.so; \
+ else mkdir -p /usr/lib/purple-2 \
+ && ln -sf /nowhere /usr/lib/purple-2/libgowhatsapp.so; \
+ fi
+
+# ---
+
FROM alpine:${ALPINE_VERSION} as bitlbee-plugins
COPY --from=bitlbee-build /usr/sbin/bitlbee /tmp/usr/sbin/bitlbee
@@ -388,6 +409,9 @@ COPY --from=signald-build /tmp/status /tmp/plugin/signald
COPY --from=icyque-build /usr/lib/purple-2/libicyque.so /tmp/usr/lib/purple-2/libicyque.so
COPY --from=icyque-build /tmp/status /tmp/plugin/icyque
+COPY --from=whatsapp-build /usr/lib/purple-2/libgowhatsapp.so /tmp/usr/lib/purple-2/libgowhatsapp.so
+COPY --from=whatsapp-build /tmp/status /tmp/plugin/whatsapp
+
RUN apk add --update --no-cache findutils \
&& find /tmp/ -type f -empty -delete \
&& find /tmp/ -type d -empty -delete \