Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Jul 25, 2024
1 parent 00c8b49 commit d89d76b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit d89d76b

Please sign in to comment.