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

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

29
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,25 +76,14 @@ 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 "$BUILD_CMD" build \
if [ "$component" != "buscribe" ]; then -f "$component/Dockerfile" \
"$BUILD_CMD" build \ --manifest "$specific" \
-f "$component/Dockerfile" \ --manifest "$latest" \
--manifest "$specific" \ --jobs 2 \
--manifest "$latest" \ --platform=linux/amd64,linux/arm64 \
--jobs 2 \ "${CACHE_ARGS[@]}" \
--platform=linux/amd64,linux/arm64 \ .
"${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