From f2dfd7172131fa6828fe04b36cd0a9ea6fe77481 Mon Sep 17 00:00:00 2001 From: jesse snyder Date: Mon, 10 Apr 2023 15:22:06 -0600 Subject: [PATCH] use FROM --platform=$BUILDPLATFORM to build arm images correctly (#9) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce3414df97db..9c99146d3e97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG VERSION="" ARG BUILDNUM="" # Build Geth in a stock Go builder container -FROM golang:1.20-alpine as builder +FROM --platform=$BUILDPLATFORM golang:1.20-alpine as builder RUN apk add --no-cache gcc musl-dev linux-headers git @@ -17,7 +17,7 @@ ADD . /go-ethereum RUN cd /go-ethereum && go run build/ci.go install -static ./cmd/geth # Pull Geth into a second stage deploy alpine container -FROM alpine:latest +FROM --platform=$BUILDPLATFORM alpine:latest RUN apk add --no-cache ca-certificates # Astria - add bash and jq to support start-geth.sh in conductor