Fix Docker startup permission issue
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 0.30.3 - 2026-05-17
|
||||
|
||||
- Fixed container startup under `docker-compose` and custom `USER_UID`/`USER_GID` mappings by launching the web app with `python3 /app/app.py` directly instead of relying on the `./ani-cli-web` launcher file being executable inside the container.
|
||||
|
||||
## 0.30.2 - 2026-05-17
|
||||
|
||||
- Added container runtime support for `USER_UID` and `USER_GID`, letting `ani-cli-web` run under a chosen numeric host user/group so files created in mounted folders are not owned by `root`.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
A local web UI for a system-wide `ani-cli` install.
|
||||
|
||||
Current version: `0.30.2`
|
||||
Current version: `0.30.3`
|
||||
|
||||
## Project Layout
|
||||
|
||||
@@ -124,6 +124,7 @@ Container defaults:
|
||||
|
||||
- `ani-cli` is installed at `/usr/local/bin/ani-cli`.
|
||||
- `ani-cli-web` is cloned into `/app` and started from there.
|
||||
- Container startup now runs `python3 /app/app.py` directly, so it does not depend on the `ani-cli-web` launcher file having executable permissions inside the image.
|
||||
- Downloads are written to `/downloads`, so bind-mount `./downloads:/downloads`.
|
||||
- App state stays under `/app/.ani-cli-web`, so bind-mount `./.ani-cli-web:/app/.ani-cli-web`.
|
||||
- The image sets `ANI_CLI_WEB_HOST=0.0.0.0` and exposes port `8421`.
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ from uuid import uuid4
|
||||
PROJECT_ROOT = Path(__file__).resolve().parent
|
||||
ANI_CLI = os.environ.get("ANI_CLI_BIN") or shutil.which("ani-cli") or "ani-cli"
|
||||
APP_NAME = "ani-cli-web"
|
||||
VERSION = "0.30.2"
|
||||
VERSION = "0.30.3"
|
||||
ALLANIME_BASE = "allanime.day"
|
||||
ALLANIME_API = f"https://api.{ALLANIME_BASE}"
|
||||
ALLANIME_REFERER = "https://allmanga.to"
|
||||
|
||||
@@ -41,7 +41,7 @@ run_as_requested_user() {
|
||||
--reuid "$uid" \
|
||||
--regid "$gid" \
|
||||
--clear-groups \
|
||||
env HOME=/app/.ani-cli-web/home ./ani-cli-web "$@"
|
||||
env HOME=/app/.ani-cli-web/home python3 /app/app.py "$@"
|
||||
}
|
||||
|
||||
mkdir -p /downloads /app/.ani-cli-web
|
||||
@@ -54,4 +54,4 @@ fi
|
||||
run_as_requested_user "$@" || true
|
||||
|
||||
cd /app
|
||||
exec ./ani-cli-web "$@"
|
||||
exec python3 /app/app.py "$@"
|
||||
|
||||
Reference in New Issue
Block a user