mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-02-02 17:59:27 +08:00
Replace pip + requirements.txt with uv for dependency management. - Multi-stage Dockerfile using ghcr.io/astral-sh/uv builder image - CI updated to use astral-sh/setup-uv@v4 - Ruff config moved to [tool.ruff.lint] (fixes deprecation) - Transitive deps removed, missing direct deps added (requests, PySocks, urllib3) - Database layer migrated to async (AsyncSession + aiosqlite) - Tests updated to match async database interface Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
276 B
Bash
15 lines
276 B
Bash
#!/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
umask ${UMASK}
|
|
|
|
if [ -f /config/bangumi.json ]; then
|
|
mv /config/bangumi.json /app/data/bangumi.json
|
|
fi
|
|
|
|
groupmod -o -g "${PGID}" ab
|
|
usermod -o -u "${PUID}" ab
|
|
|
|
chown ab:ab -R /app /home/ab
|
|
|
|
exec su-exec "${PUID}:${PGID}" python main.py |