From 4b2357125408424253bc7cef59782058d3faa7e4 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Fri, 29 Sep 2023 01:56:30 -0500 Subject: [PATCH] Arm64 docker build --- .github/workflows/docker.yml | 12 ++++++++---- Dockerfile | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3d917c0a..d7177345 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,11 +1,10 @@ -name: Create and publish amd64 Docker image +name: Create and publish Docker images on: workflow_dispatch: push: branches: - master - tags: [ "*" ] release: types: [ published ] @@ -22,7 +21,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 @@ -41,7 +45,7 @@ jobs: uses: docker/build-push-action@v3 with: context: . - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index fc757592..167fc53c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY . /app WORKDIR /app # I think we need git be here because the vite build wants to look up the commit hash -RUN apt update && apt install -y git +RUN apt update && apt install -y git python3 make build-essential # Add the ARG directives for build-time environment variables ARG VITE_NETWORK="bitcoin"