From b026b1e6b42e230bda2e26fc961c87a976c62d3d Mon Sep 17 00:00:00 2001 From: David Date: Tue, 25 Jul 2023 14:05:54 +0300 Subject: [PATCH] Prepare dockerfile for multiarch build --- .github/workflows/publish_docker_image.yml | 6 ++++++ Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index 3a4ef11..73ae2d3 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 144f5e6..977484f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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