aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2022-04-08 11:28:57 +0000
committerezkrg <ezkrg@ezkrg.me>2022-04-08 11:28:57 +0000
commit73fb6b3dd21f440ea7024951ba5e8fca2d07abcb (patch)
tree2436775cfda538affc54d76cd094b82a647d5f94 /Dockerfile
parentupdate signal (diff)
downloaddocker-bitlbee-libpurple-73fb6b3dd21f440ea7024951ba5e8fca2d07abcb.tar.gz
docker-bitlbee-libpurple-73fb6b3dd21f440ea7024951ba5e8fca2d07abcb.zip
revive alpine3.12 for arm build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 9e7fa5f..91ac9a2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,6 @@
-FROM alpine:3.15 as base-image
+ARG ALPINE_VERSION
+
+FROM alpine:${ALPINE_VERSION} as base-image
FROM base-image as bitlbee-build
@@ -280,12 +282,17 @@ FROM bitlbee-build as matrix-build
ARG MATRIX=1
ARG MATRIX_VERSION
+SHELL [ "/bin/bash", "-c" ]
+
+COPY matrix-e2e.c.patch /tmp/matrix-e2e.c.patch
+
RUN echo MATRIX=${MATRIX} > /tmp/status \
&& if [ ${MATRIX} -eq 1 ]; \
then cd /tmp \
&& git clone -n https://github.com/matrix-org/purple-matrix \
&& cd purple-matrix \
&& git checkout ${MATRIX_VERSION} \
+ && if [ $(uname -m) == "armv7l" ]; then patch < ../matrix-e2e.c.patch; fi \
&& make -j$(nproc --ignore 2) \
&& make install \
&& strip /usr/lib/purple-2/libmatrix.so; \