-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 680 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Use a specific version of the Node-RED base image
FROM nodered/node-red:4.0.3
# Switch to root to install additional packages
USER root
# Update apk and install ffmpeg, Python, and necessary development libraries
RUN apk update && apk add --no-cache \
ffmpeg \
python3 \
py3-pip \
libxml2-dev \
libxslt-dev \
build-base \
python3-dev \
py3-lxml \
py3-pycryptodome \
pipx \
yt-dlp
# Switch back to the node-red user
USER node-red
# Install streamlink using pipx and ensure it is globally accessible
RUN pipx install streamlink
RUN pipx ensurepath
# Ensure the node-red user has the correct PATH
ENV PATH="/usr/local/bin:${PATH}"