fix: build and run ONNX Runtime on Debian Trixie

This commit is contained in:
ab committed 2026-11-23 03:54:22 +02:00
1 parent aad76c782a
commit 62f28066b3
1 file changed
+6 -2
+6 -2
View File
@@ -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"]