From a846c5b4a12b40ce821dc76b4f889346e50a9d2c Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 20 Jun 2024 19:35:32 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 72d224d..43049d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,11 @@ RUN apk update && apk add --no-cache \ py3-pycryptodome \ pipx -# Install streamlink using pip -RUN pipx install streamlink -RUN pipx ensurepath +# Install streamlink using pipx and ensure it is globally accessible +RUN pipx install streamlink && ln -s /root/.local/bin/streamlink /usr/local/bin/streamlink # Switch back to the node-red user USER node-red + +# Ensure the node-red user has the correct PATH +ENV PATH="/usr/local/bin:${PATH}"