server: update yt-dlp at server container start

Rather than update yt-dlp at image build,, do this at container run instead to
ensure we always get the latest fixed version.
This commit is contained in:
Zak B. Elep 2024-09-01 20:58:23 +08:00
parent d102578b54
commit cd72980ae7

View file

@ -2,6 +2,11 @@
set -e set -e
cd /opt/app cd /opt/app
mkdir -p /opt/app/bin
wget -O /opt/app/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
chmod +x /opt/app/bin/yt-dlp
export PATH=/opt/app/bin:$PATH
alembic upgrade head alembic upgrade head
echo "Starting szurubooru API on port ${PORT} - Running on ${THREADS} threads" echo "Starting szurubooru API on port ${PORT} - Running on ${THREADS} threads"