Add ANI_CLI_WEB_BRANCH build arg

- add ANI_CLI_WEB_BRANCH to the Docker build so ani-cli-web can be cloned from master or another branch
- pass the new build arg through docker-compose
- document the new branch-selection workflow in the README
This commit is contained in:
Dymas
2026-07-09 13:20:44 +02:00
parent 0a3513021c
commit 65a1bc1233
3 changed files with 22 additions and 1 deletions
+18
View File
@@ -50,6 +50,12 @@ Useful flags and env:
- `ANI_CLI_WEB_PORT=8421`
- `ANI_CLI_BIN=/path/to/ani-cli`
Build args:
- `ANI_CLI_BRANCH=master`
- `ANIKOTO_CLI_BRANCH=main`
- `ANI_CLI_WEB_BRANCH=main`
## Docker
Build:
@@ -58,6 +64,12 @@ Build:
docker build -t ani-cli-web .
```
Build a specific ani-cli-web branch:
```sh
docker build --build-arg ANI_CLI_WEB_BRANCH=master -t ani-cli-web .
```
Run:
```sh
@@ -76,6 +88,12 @@ Compose:
USER_UID="$(id -u)" USER_GID="$(id -g)" docker compose up --build -d
```
Compose can also target a specific ani-cli-web branch:
```sh
ANI_CLI_WEB_BRANCH=master USER_UID="$(id -u)" USER_GID="$(id -g)" docker compose up --build -d
```
Docker notes:
- The container serves on `0.0.0.0:8421`