Update buscribe to debian:12 to make it build on arm64

HubbeKing-multiplatform-builds
HubbeKing 2 weeks ago
parent b1ca0a0aad
commit 58d4d038b4

29
build

@ -54,7 +54,7 @@ case "${CACHE:-}" in
BUILD_CMD="docker"
;;
readonly)
CACHE_ARGS+=("--cache-from" "$CACHE_NAME")
CACHE_ARGS+=("--layers" "--cache-from" "$CACHE_NAME")
BUILD_CMD="buildah"
;;
*)
@ -76,25 +76,14 @@ for component in "${COMPONENTS[@]}"; do
latest="$BASE/wubloader-$component:latest"
specific="$BASE/wubloader-$component:$TAG"
if [ -n "$MULTIPLATFORM" ]; then
# buscribe doesn't (yet?) build under arm64 due to pulling in libc-bin, skip arm64 for it
if [ "$component" != "buscribe" ]; then
"$BUILD_CMD" build \
-f "$component/Dockerfile" \
--manifest "$specific" \
--manifest "$latest" \
--jobs 2 \
--platform=linux/amd64,linux/arm64 \
"${CACHE_ARGS[@]}" \
.
else
"$BUILD_CMD" build \
-f "$component/Dockerfile" \
--manifest "$specific" \
--manifest "$latest" \
--platform=linux/amd64 \
"${CACHE_ARGS[@]}" \
.
fi
"$BUILD_CMD" build \
-f "$component/Dockerfile" \
--manifest "$specific" \
--manifest "$latest" \
--jobs 2 \
--platform=linux/amd64,linux/arm64 \
"${CACHE_ARGS[@]}" \
.
else
"$BUILD_CMD" build \
-f "$component/Dockerfile" \

@ -1,4 +1,4 @@
FROM debian:11
FROM debian:12
RUN apt update &&\
apt install -y python3 libpq-dev python3-pip curl unzip ffmpeg
@ -14,6 +14,8 @@ RUN cd /tmp \
&& unzip vosk-model-spk-0.4.zip -d /usr/share/buscribe \
&& rm *.zip
RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED
COPY common /tmp/common
RUN pip install /tmp/common && rm -r /tmp/common

Loading…
Cancel
Save