From cd72980ae70e347d6460ea888b240c03d8b8595f Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sun, 1 Sep 2024 20:58:23 +0800 Subject: [PATCH] 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. --- server/docker-start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/docker-start.sh b/server/docker-start.sh index eebef1c7..134bffdb 100755 --- a/server/docker-start.sh +++ b/server/docker-start.sh @@ -2,6 +2,11 @@ set -e 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 echo "Starting szurubooru API on port ${PORT} - Running on ${THREADS} threads"