Skip to content

Commit

Permalink
Build multi-arch image
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Oct 3, 2024
1 parent 0082083 commit 9537953
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,32 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Build ragflow:dev-slim
- name: Prepare data
run: |
RUNNER_WORKSPACE_PREFIX=${RUNNER_WORKSPACE_PREFIX:-$HOME}
cp -r ${RUNNER_WORKSPACE_PREFIX}/huggingface.co ${RUNNER_WORKSPACE_PREFIX}/nltk_data .
sudo docker build -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build ragflow:dev-slim
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: infiniflow/ragflow:dev-slim
file: Dockerfile.slim

- name: Build ragflow:dev
run: |
sudo docker build -f Dockerfile -t infiniflow/ragflow:dev .
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: infiniflow/ragflow:dev
file: Dockerfile

- name: Start ragflow:dev-slim
run: |
Expand Down

0 comments on commit 9537953

Please sign in to comment.