From 54145e255001a2c70a5435e9e3809e09e3adf484 Mon Sep 17 00:00:00 2001 From: Richard R Date: Mon, 19 Jan 2026 21:08:13 -0700 Subject: [PATCH] fix: Docker whisper cli --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2834c7f..255275d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ # Stage 1: build whisper.cpp (no model download – the app handles that) -FROM alpine:3.20 AS whisper-builder +FROM alpine:3.23 AS whisper-builder RUN apk add --no-cache git cmake build-base WORKDIR /opt +ARG TARGETARCH + RUN git clone --depth 1 https://github.com/ggml-org/whisper.cpp.git && \ cd whisper.cpp && \ - cmake -B build && \ - cmake --build build -j --config Release + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF $( [ "$TARGETARCH" = "arm64" ] && echo "-DGGML_CPU_ARM_ARCH=armv8-a" || true ) && \ + cmake --build build -j # Stage 2: build the Next.js app