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

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

13
build

@ -54,7 +54,7 @@ case "${CACHE:-}" in
BUILD_CMD="docker" BUILD_CMD="docker"
;; ;;
readonly) readonly)
CACHE_ARGS+=("--cache-from" "$CACHE_NAME") CACHE_ARGS+=("--layers" "--cache-from" "$CACHE_NAME")
BUILD_CMD="buildah" BUILD_CMD="buildah"
;; ;;
*) *)
@ -76,8 +76,6 @@ for component in "${COMPONENTS[@]}"; do
latest="$BASE/wubloader-$component:latest" latest="$BASE/wubloader-$component:latest"
specific="$BASE/wubloader-$component:$TAG" specific="$BASE/wubloader-$component:$TAG"
if [ -n "$MULTIPLATFORM" ]; then 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 \ "$BUILD_CMD" build \
-f "$component/Dockerfile" \ -f "$component/Dockerfile" \
--manifest "$specific" \ --manifest "$specific" \
@ -86,15 +84,6 @@ for component in "${COMPONENTS[@]}"; do
--platform=linux/amd64,linux/arm64 \ --platform=linux/amd64,linux/arm64 \
"${CACHE_ARGS[@]}" \ "${CACHE_ARGS[@]}" \
. .
else
"$BUILD_CMD" build \
-f "$component/Dockerfile" \
--manifest "$specific" \
--manifest "$latest" \
--platform=linux/amd64 \
"${CACHE_ARGS[@]}" \
.
fi
else else
"$BUILD_CMD" build \ "$BUILD_CMD" build \
-f "$component/Dockerfile" \ -f "$component/Dockerfile" \

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

Loading…
Cancel
Save