feat: add REPO/BRANCH build args for llama.cpp (#59)
- Introduce ARG REPO and ARG BRANCH to replace the hardcoded git clone with: `git clone -b ${BRANCH} --single-branch --recursive ${REPO}` . This allows overriding the llama.cpp repository and branch at build time via `--build-arg`.
- Update `docs/building.md` to recommend using `--build-arg` instead of updating the file
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ podman build --no-cache -t llama-rocm-6.4.2 -f Dockerfile.rocm-6.4.2 .
|
||||
|
||||
## 3. Customizing the Build
|
||||
|
||||
* **llama.cpp version**: Change the `git clone` or `git checkout` line in the Dockerfile.
|
||||
* **llama.cpp version**: Use the `--build-arg REPO=...` and `--build-arg BRANCH=...` options to specify a different repository or branch.
|
||||
* **Extra dependencies**: Add them to the Dockerfile as needed.
|
||||
* **Other customizations**: Install tools, patch scripts, or swap to a different base image.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user