fix: add optional graphrag toggle in dockerfile (#377)

* fix: toggle graphrag install in Docker build

* fix: update Dockerfile

* fix: remove unused logics in chat_fn

* fix: disable duckduckgo test due to API limit
This commit is contained in:
Tuan Anh Nguyen Dang (Tadashi_Cin)
2024-10-10 16:09:57 +07:00
committed by GitHub
parent 3ff6af8acf
commit 6da9db489f
5 changed files with 39 additions and 132 deletions

View File

@@ -88,16 +88,34 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image
- name: Build docker image (amd64)
uses: docker/build-push-action@v6
with:
file: Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: ${{ matrix.target }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
ENABLE_GRAPHRAG=true
- name: Build docker image (arm64)
uses: docker/build-push-action@v6
with:
file: Dockerfile
context: .
push: true
platforms: linux/arm64
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: ${{ matrix.target }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
ENABLE_GRAPHRAG=false