diff --git a/build/dockerfiles/Dockerfile b/build/dockerfiles/Dockerfile index 645853c13b55..c128cf2e787c 100644 --- a/build/dockerfiles/Dockerfile +++ b/build/dockerfiles/Dockerfile @@ -1,5 +1,5 @@ # Build Geth in a stock Go builder container -FROM --platform=${BUILDPLATFORM} golang:1.21 AS builder +FROM golang:1.21 AS builder #RUN apt-get update && apt-get install -y \ # gcc \ @@ -16,22 +16,13 @@ RUN cd /prysm && go mod download ADD . /prysm FROM builder AS build-beacon-chain -ARG TARGETOS -ARG TARGETARCH -RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ - cd /prysm/cmd/beacon-chain && CGO_ENABLED=1 go build -v -o /usr/local/bin/beacon-chain +RUN cd /prysm/cmd/beacon-chain && CGO_ENABLED=1 go build -v -o /usr/local/bin/beacon-chain FROM builder AS build-validator -ARG TARGETOS -ARG TARGETARCH -RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ - cd /prysm/cmd/validator && CGO_ENABLED=1 go build -v -o /usr/local/bin/validator +RUN cd /prysm/cmd/validator && CGO_ENABLED=1 go build -v -o /usr/local/bin/validator FROM builder AS build-prysmctl -ARG TARGETOS -ARG TARGETARCH -RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ - cd /prysm/cmd/prysmctl && CGO_ENABLED=1 go build -v -o /usr/local/bin/prysmctl +RUN cd /prysm/cmd/prysmctl && CGO_ENABLED=1 go build -v -o /usr/local/bin/prysmctl # Pull Geth into a second stage deploy container FROM debian:latest AS beacon-chain