Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from zama-ai/multiarch_build
Browse files Browse the repository at this point in the history
Prepare dockerfile for multiarch build
  • Loading branch information
david-zk authored Jul 26, 2023
2 parents 0eb0a5b + b026b1e commit 7fd4b41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ jobs:
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1
with:
platforms: linux/amd64,linux/arm64

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile
push: true
tags: ${{ env.DOCKER_IMAGE }}:${{ inputs.fhevm_tfhe_cli_tag }},${{ env.DOCKER_IMAGE }}:latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM rust:1.67 as builder
FROM rust:1.70 as builder

WORKDIR /usr/local/app/fhevm-tfhe-cli
ADD . .
RUN cargo build --release --features tfhe/$(./scripts/get_arch.sh)
RUN cargo build --release --features tfhe/seeder_unix

FROM debian:bullseye-slim
WORKDIR /usr/local/app
Expand Down

0 comments on commit 7fd4b41

Please sign in to comment.