fix: install arm64 fontconfig/freetype libs for cross-compilation

This commit is contained in:
t8y2
2026-05-26 13:23:29 +08:00
parent c2d5b3aea3
commit 8539e492cc
+3 -1
View File
@@ -14,9 +14,11 @@ RUN pnpm build
FROM --platform=$BUILDPLATFORM rust:1-bookworm AS backend
ARG TARGETARCH
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN dpkg --add-architecture arm64 \
&& apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake pkg-config perl python3-pip gcc-aarch64-linux-gnu \
unixodbc-dev \
libfontconfig-dev:arm64 libfreetype-dev:arm64 \
&& pip3 install --break-system-packages ziglang \
&& cargo install cargo-zigbuild \
&& rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu \