Files
Iris/docker/entrypoint.sh
Bart Ribbers 6fe2e9d5de 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
2023-04-18 15:32:45 +02:00

15 lines
342 B
Bash
Executable File

#!/bin/bash
if [ -z "$PULSE_COOKIE_DATA" ]
then
echo -ne $(echo $PULSE_COOKIE_DATA | sed -e 's/../\\x&/g') >$HOME/pulse.cookie
export PULSE_COOKIE=$HOME/pulse.cookie
fi
if [ ${PIP_PACKAGES:+x} ]; then
echo "-- INSTALLING PIP PACKAGES $PIP_PACKAGES --"
python3 -m pip install --no-cache --upgrade $PIP_PACKAGES
fi
exec "$@"