Add Docker branch selector for ani-cli-web

Add an  build argument to the Docker image so the cloned ani-cli-web source can come from a selected branch, and document the new build option in the README.
This commit is contained in:
Dymas
2026-07-09 14:22:04 +02:00
parent d8ed64bd64
commit 4e980220b1
2 changed files with 12 additions and 1 deletions
+9
View File
@@ -59,6 +59,14 @@ Build:
docker build -t ani-cli-web .
```
Build a specific `ani-cli-web` branch:
```sh
docker build \
--build-arg ANI_CLI_WEB_BRANCH=anipy_backup \
-t ani-cli-web .
```
Run:
```sh
@@ -84,6 +92,7 @@ Docker notes:
- App state is stored under `/app/.ani-cli-web`
- `USER_UID` and `USER_GID` help keep mounted files owned by your host user
- `UPDATE_ON_START=true` runs `ani-cli --update` before startup
- `ANI_CLI_WEB_BRANCH` lets the image clone a specific `ani-cli-web` branch at build time
## Key behavior