Files
nr-flow-validator/infra/audio-bridge/Dockerfile
T
david 573821426c audio: add PipeWire+BT audio-bridge, mopidy (Qobuz+local), librespot (Spotify Connect)
- audio-bridge: alpine + pipewire + pipewire-pulse + wireplumber + bluez + dbus + tini
  Routes audio from librespot/mopidy/phone-BT to USB DAC (Q5K) via ALSA.
  Privileged + host network for bluetoothd HCI access.
- mopidy: built from python:3.12-slim-bookworm + pip (no ghcr.io dep).
  Qobuz (auth from developer.qobuz.com) + local files. PA bridge to audio-bridge.
- librespot: built from rust:1.85.1 on RPi (cross-compile too slow under qemu).
  Spotify Connect target named 'Klubhaus'. PA bridge to audio-bridge.

Both mopidy and librespot build locally to avoid ghcr.io auth/rate-limit issues.
PEQ stays on Q5K side (Qudelix app, 20 bands) for source-independent EQ.
2026-07-01 04:49:15 -07:00

27 lines
826 B
Docker

# Audio bridge: PipeWire + PulseAudio bridge + BlueZ
# Routes audio from librespot / mopidy / phone-Bluetooth to USB DAC (Qudelix 5K)
# Cross-built for linux/arm64 on x86_64 build host via buildx + qemu.
FROM alpine:3.20
# PipeWire = audio router, handles ALSA sink + bluetooth A2DP sink + PA bridge.
# wireplumber = PipeWire session manager (loads bluetooth modules on demand).
# bluez = Bluetooth stack (needed for "bluetooth target" — phone → Pi audio).
RUN apk add --no-cache \
pipewire \
pipewire-pulse \
wireplumber \
bluez \
alsa-utils \
alsa-plugins-pulse \
dbus \
tini
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# D-Bus socket dir for bluetoothd / wireplumber / pipewire
VOLUME ["/run/dbus", "/run/user/0"]
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]