From 41bc1a7ef51b4f5e499079f671b9b984a444cd45 Mon Sep 17 00:00:00 2001 From: Tueem Date: Mon, 6 Jul 2026 19:41:19 +0200 Subject: [PATCH] fix(audio): web ui download --- audio-manager/Dockerfile | 18 ++++++++++++------ audio-manager/start.sh | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/audio-manager/Dockerfile b/audio-manager/Dockerfile index 1b60f34..0c15d18 100644 --- a/audio-manager/Dockerfile +++ b/audio-manager/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bookworm-slim +FROM debian:bookworm-slim # Install PipeWire, WirePlumber, PulseAudio compat, ALSA, and D-Bus RUN apt-get update && apt-get install -y \ @@ -7,15 +7,21 @@ RUN apt-get update && apt-get install -y \ pipewire-alsa \ wireplumber \ dbus-x11 \ - git \ + curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app -# Clone and build the PipeWire Web Remote interface -RUN git clone https://github.com/oudeis01/pipewire-web-remote.git . \ - && npm install \ - && npm run build +# Download the precompiled binary based on architecture +RUN ARCH=$(uname -m) && \ + if [ "$ARCH" = "aarch64" ]; then \ + curl -L -o pipewire-web-remote https://github.com/oudeis01/pipewire-web-remote/releases/latest/download/pipewire-web-remote-aarch64; \ + elif [ "$ARCH" = "x86_64" ]; then \ + curl -L -o pipewire-web-remote https://github.com/oudeis01/pipewire-web-remote/releases/latest/download/pipewire-web-remote-x86_64; \ + else \ + echo "Unsupported architecture"; exit 1; \ + fi && \ + chmod +x pipewire-web-remote COPY start.sh /start.sh RUN chmod +x /start.sh diff --git a/audio-manager/start.sh b/audio-manager/start.sh index 13fec60..6953f58 100644 --- a/audio-manager/start.sh +++ b/audio-manager/start.sh @@ -24,4 +24,4 @@ sleep 1 chmod -R 777 /tmp/pulse || true echo "Starting PipeWire Web Remote..." -exec npm start +exec ./pipewire-web-remote