This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/server/docker-start.sh
Zak B. Elep cd72980ae7 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.
2024-09-01 20:59:04 +08:00

13 lines
406 B
Bash
Executable file

#!/usr/bin/dumb-init /bin/sh
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"
exec waitress-serve-3 --port ${PORT} --threads ${THREADS} szurubooru.facade:app