fix(audio): web ui download
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18-bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
# Install PipeWire, WirePlumber, PulseAudio compat, ALSA, and D-Bus
|
# Install PipeWire, WirePlumber, PulseAudio compat, ALSA, and D-Bus
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@@ -7,15 +7,21 @@ RUN apt-get update && apt-get install -y \
|
|||||||
pipewire-alsa \
|
pipewire-alsa \
|
||||||
wireplumber \
|
wireplumber \
|
||||||
dbus-x11 \
|
dbus-x11 \
|
||||||
git \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Clone and build the PipeWire Web Remote interface
|
# Download the precompiled binary based on architecture
|
||||||
RUN git clone https://github.com/oudeis01/pipewire-web-remote.git . \
|
RUN ARCH=$(uname -m) && \
|
||||||
&& npm install \
|
if [ "$ARCH" = "aarch64" ]; then \
|
||||||
&& npm run build
|
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
|
COPY start.sh /start.sh
|
||||||
RUN chmod +x /start.sh
|
RUN chmod +x /start.sh
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ sleep 1
|
|||||||
chmod -R 777 /tmp/pulse || true
|
chmod -R 777 /tmp/pulse || true
|
||||||
|
|
||||||
echo "Starting PipeWire Web Remote..."
|
echo "Starting PipeWire Web Remote..."
|
||||||
exec npm start
|
exec ./pipewire-web-remote
|
||||||
|
|||||||
Reference in New Issue
Block a user