Skip to content

Commit

Permalink
Prepare dockerfile for multiarch build
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Jul 26, 2023
1 parent 0eb0a5b commit b7f9c19
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

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

0 comments on commit b7f9c19

Please sign in to comment.