diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index f3bcd37..d96faef 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -63,6 +63,7 @@ jobs: SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }} SCCACHE_REGION=auto SCCACHE_ARCH=${{ matrix.arch.sccache_arch }} + BUILDPLATFORM=${{ matrix.arch.name }} tags: | ghcr.io/renlabs-dev/torus-substrate:${{ steps.commit.outputs.short }} ghcr.io/renlabs-dev/torus-substrate:${{ env.SANITIZED_REF }} diff --git a/docker/node.dockerfile b/docker/node.dockerfile index 7bef1ef..fe057ea 100644 --- a/docker/node.dockerfile +++ b/docker/node.dockerfile @@ -1,4 +1,6 @@ -FROM debian:12-slim AS builder +ARG BUILDPLATFORM=linux/amd64 + +FROM --platform=$BUILDPLATFORM debian:12-slim AS builder ARG SCCACHE_BUCKET ARG SCCACHE_ENDPOINT @@ -47,7 +49,7 @@ RUN --mount=type=secret,id=aws-key-id \ ./sccache --show-stats; \ fi -FROM debian:12-slim +FROM --platform=$BUILDPLATFORM debian:12-slim RUN apt update && apt install -y zlib1g && \ rm -rf /var/cache/apt/archives /var/lib/apt/lists/*