revive alpine3.12 for arm build

This commit is contained in:
ezkrg
2022-04-08 13:28:57 +02:00
parent eadfa2d503
commit 73fb6b3dd2
2 changed files with 63 additions and 6 deletions

View File

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