From 62f28066b354fba30c1f4158cdabc325b87dd038 Mon Sep 17 00:00:00 2001 From: AB Date: Mon, 23 Nov 2026 03:54:22 +0200 Subject: [PATCH] fix: build and run ONNX Runtime on Debian Trixie --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd3139f..c06b2f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM python:3.13-slim-bookworm AS lyrics-model COPY scripts/fetch-lyrics-model.py /fetch-lyrics-model.py RUN python /fetch-lyrics-model.py /model -FROM rust:1.97.0-bookworm AS chef +# The prebuilt Linux ONNX Runtime needs Trixie's glibc and libstdc++ at link time and at runtime. +FROM rust:1.97.0-trixie AS chef RUN apt-get update \ && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates \ @@ -33,7 +34,7 @@ RUN cargo build --release --locked --bin furumusic FROM denoland/deno:bin-2.8.3 AS deno -FROM debian:bookworm-slim +FROM debian:trixie-slim ARG YT_DLP_VERSION=2026.07.04 @@ -42,6 +43,7 @@ RUN apt-get update \ ca-certificates \ ffmpeg \ libchromaprint-tools \ + libstdc++6 \ python3 \ python3-pip \ && pip3 install --break-system-packages --no-cache-dir --disable-pip-version-check \ @@ -53,5 +55,7 @@ COPY --from=builder /app/target/release/furumusic /usr/local/bin/furumusic COPY --from=deno /deno /usr/local/bin/deno COPY --from=lyrics-model /model /opt/furumusic/models/multilingual-e5-small +RUN FURU_LOG_LEVEL=error furumusic --version + EXPOSE 8000 CMD ["furumusic", "-l", "0.0.0.0:8000"]