Skip to content

Commit cfb6e55

Browse files
committed
chore(build): replace ADD and add required dependencies
1 parent bbfcb52 commit cfb6e55

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile.dev

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ FROM golang:1.22-alpine AS build
22

33
# Use ARG values for tool versions
44
ARG TARGETARCH
5-
ARG GETH_NODE_VERSION=v1.14.3
65
ARG PRYSM_VERSION=v5.0.3
76

87
# Install dependencies
98
RUN apk update &&\
109
apk add --no-cache \
11-
gcc g++ make musl-dev linux-headers git git-lfs
10+
libc6-compat gcc make musl-dev linux-headers git git-lfs curl
1211

1312
# Download and set up Prysm binaries
14-
ADD https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/beacon-chain-${PRYSM_VERSION}-linux-${TARGETARCH} /usr/bin/prysm-beacon
15-
ADD https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/validator-${PRYSM_VERSION}-linux-${TARGETARCH} /usr/bin/prysm-validator
16-
ADD https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/prysmctl-${PRYSM_VERSION}-linux-${TARGETARCH} /usr/bin/prysm-ctl
17-
RUN chmod +x /usr/bin/prysm-beacon /usr/bin/prysm-validator /usr/bin/prysm-ctl
13+
RUN curl -L https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/beacon-chain-${PRYSM_VERSION}-linux-${TARGETARCH} -o /usr/bin/prysm-beacon &&\
14+
curl -L https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/validator-${PRYSM_VERSION}-linux-${TARGETARCH} -o /usr/bin/prysm-validator &&\
15+
curl -L https://github.com/prysmaticlabs/prysm/releases/download/${PRYSM_VERSION}/prysmctl-${PRYSM_VERSION}-linux-${TARGETARCH} -o /usr/bin/prysm-ctl &&\
16+
chmod +x /usr/bin/prysm-beacon /usr/bin/prysm-validator /usr/bin/prysm-ctl
1817

1918
WORKDIR /go-ethereum
2019

0 commit comments

Comments
 (0)