Skip to content

Commit f6d44eb

Browse files
committed
fix dependency error
1 parent 105d1d4 commit f6d44eb

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

build/dockerfiles/beacon-chain_file.Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Build Geth in a stock Go builder container
22
FROM golang:1.21 as builder
33

4-
RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 libc-dev musl-dev linux-headers
4+
RUN apt-get update && apt-get install -y \
5+
gcc \
6+
g++ \
7+
libstdc++6 \
8+
libc-dev \
9+
musl-tools
510

611
# Get dependencies - will also be cached if we won't change go.mod/go.sum
712
COPY go.mod /prysm/
@@ -14,7 +19,7 @@ RUN cd /prysm/cmd/beacon-chain && CGO_ENABLED=1 go build -v -o /usr/local/bin/be
1419
# Pull Geth into a second stage deploy container
1520
FROM debian:buster-slim
1621

17-
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
RUN apt-get update && apt-get install -y \
1823
ca-certificates \
1924
libstdc++6 \
2025
libc-dev \

build/dockerfiles/validator_file.Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Build Geth in a stock Go builder container
22
FROM golang:1.21 as builder
33

4-
RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 libc-dev musl-dev linux-headers
4+
RUN apt-get update && apt-get install -y \
5+
gcc \
6+
g++ \
7+
libstdc++6 \
8+
libc-dev \
9+
musl-tools
510

611
# Get dependencies - will also be cached if we won't change go.mod/go.sum
712
COPY go.mod /prysm/
@@ -14,7 +19,7 @@ RUN cd /prysm/cmd/validator && CGO_ENABLED=1 go build -v -o /usr/local/bin/valid
1419
# Pull Geth into a second stage deploy container
1520
FROM debian:buster-slim
1621

17-
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
RUN apt-get update && apt-get install -y \
1823
ca-certificates \
1924
libstdc++6 \
2025
libc-dev \

0 commit comments

Comments
 (0)