feat(docker): also update the specified pip packages rather than just installing them

Some pip packages may get updates and subsequent container runs wouldn't
install them. Not so much of a problem normally but when for example
yt-dlp is installed through pip to use with mopidy-youtube it's
important to keep yt-dlp up-to-date to not have functionality be broken
when Youtube updates their webpage again
This commit is contained in:
Bart Ribbers
2023-04-18 15:32:43 +02:00
parent e7d19ce9cc
commit 6fe2e9d5de

View File

@ -8,7 +8,7 @@ fi
if [ ${PIP_PACKAGES:+x} ]; then
echo "-- INSTALLING PIP PACKAGES $PIP_PACKAGES --"
python3 -m pip install --no-cache $PIP_PACKAGES
python3 -m pip install --no-cache --upgrade $PIP_PACKAGES
fi
exec "$@"