docs: update build instructions and multi-arch installer

This commit is contained in:
Yeuoly
2026-01-14 22:17:48 +08:00
parent 6841d4fce8
commit 4e3a00c788
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -27,6 +27,8 @@ Instead of managing separate containers or installing dependencies on-the-fly, A
docker run -it --rm -v $(pwd):/workspace langgenius/dify-agentbox:latest
```
Multi-arch images (amd64/arm64) are published and tagged with the full git SHA plus `latest`.
## Use Cases
- **AI Agent Execution**: Run LLM-generated code safely in isolated environments
@@ -65,7 +67,7 @@ python_packages:
version: "~=2.2.3"
```
**2. Render Dockerfile locally**
**2. Render & build locally (multi-arch)**
```bash
# Install dependencies
@@ -74,15 +76,16 @@ uv sync
# Render Dockerfile
uv run python build.py
# Build the image with Docker
docker build -t langgenius/dify-agentbox:dev .
# Build multi-arch image with git SHA tag
TAG=$(git rev-parse --short HEAD)
docker buildx build --platform linux/amd64,linux/arm64 -t langgenius/dify-agentbox:${TAG} .
```
**3. Test Changes**
```bash
# Run the image
docker run -it --rm langgenius/dify-agentbox:dev
docker run -it --rm langgenius/dify-agentbox:${TAG}
# Verify installations
python --version
+1 -1
View File
@@ -16,9 +16,9 @@ curl -fsSLo /tmp/miniconda.sh "https://repo.anaconda.com/miniconda/Miniconda3-la
bash /tmp/miniconda.sh -b -p /opt/conda
rm /tmp/miniconda.sh
/opt/conda/bin/conda config --set always_yes yes --set changeps1 no
/opt/conda/bin/conda update -n base -c defaults conda
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
/opt/conda/bin/conda update -n base -c defaults conda
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_{{ languages.nodejs.version }}.x | bash -