Skip to content

Commit 754db7e

Browse files
committed
rebase to alpine 3.24, use distro onnxruntime for the discovery embedding runtime
1 parent 9ed2b0d commit 754db7e

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.23
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.24
44

55
# set version label
66
ARG BUILD_DATE
@@ -15,7 +15,9 @@ RUN \
1515
echo "**** install runtime packages ****" && \
1616
apk add --no-cache --upgrade \
1717
ffmpeg \
18+
gcompat \
1819
nodejs \
20+
onnxruntime \
1921
openssl \
2022
yt-dlp && \
2123
apk add --no-cache --upgrade --virtual=build-dependencies \
@@ -36,6 +38,16 @@ RUN \
3638
cd /app/mstream && \
3739
chown -R abc:abc ./ && \
3840
su -s /bin/sh abc -c 'HOME=/tmp npm install --omit=dev' && \
41+
echo "**** use distro onnxruntime for the discovery embedding runtime ****" && \
42+
if [ -d /app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/x64 ]; then \
43+
rm -f \
44+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime.so.1 \
45+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_cuda.so \
46+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_tensorrt.so && \
47+
ln -s \
48+
/usr/lib/libonnxruntime.so.1 \
49+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime.so.1; \
50+
fi && \
3951
npm link && \
4052
chmod +x /app/mstream/bin/rust-parser/* && \
4153
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \

Dockerfile.aarch64

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.23
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.24
44

55
# set version label
66
ARG BUILD_DATE
@@ -15,7 +15,9 @@ RUN \
1515
echo "**** install runtime packages ****" && \
1616
apk add --no-cache --upgrade \
1717
ffmpeg \
18+
gcompat \
1819
nodejs \
20+
onnxruntime \
1921
openssl \
2022
yt-dlp && \
2123
apk add --no-cache --upgrade --virtual=build-dependencies \
@@ -36,6 +38,16 @@ RUN \
3638
cd /app/mstream && \
3739
chown -R abc:abc ./ && \
3840
su -s /bin/sh abc -c 'HOME=/tmp npm install --omit=dev' && \
41+
echo "**** use distro onnxruntime for the discovery embedding runtime ****" && \
42+
if [ -d /app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64 ]; then \
43+
rm -f \
44+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64/libonnxruntime.so.1 \
45+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64/libonnxruntime_providers_cuda.so \
46+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64/libonnxruntime_providers_tensorrt.so && \
47+
ln -s \
48+
/usr/lib/libonnxruntime.so.1 \
49+
/app/mstream/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64/libonnxruntime.so.1; \
50+
fi && \
3951
npm link && \
4052
chmod +x /app/mstream/bin/rust-parser/* && \
4153
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ init_diagram: |
7272
"mstream:latest" <- Base Images
7373
# changelog
7474
changelogs:
75+
- {date: "08.07.26:", desc: "Rebase to Alpine 3.24. Use the distro onnxruntime so the discovery/recommendation features work on musl."}
7576
- {date: "24.04.26:", desc: "Make waveform data persistent."}
7677
- {date: "20.04.26:", desc: "Fix perms on rust binaries."}
7778
- {date: "07.04.26:", desc: "Add ffmpeg and yt-dlp."}

0 commit comments

Comments
 (0)