diff --git a/README.md b/README.md index d36b421..e4acbc6 100644 --- a/README.md +++ b/README.md @@ -285,14 +285,9 @@ This removes all local chain and monitoring data. ### Estimate remaining sync time -`progress.sh` uses Foundry's `cast` on the host machine. - -The `bedrock-init` container installs Foundry for its own image build, but that -does not make `cast` available on your host shell. Install Foundry locally if -you want to use `progress.sh`. - -Install Foundry from [https://getfoundry.sh/](https://getfoundry.sh/) and then -run: +`progress.sh` uses Foundry's `cast`, which must be installed on your host +machine. Install Foundry from [https://getfoundry.sh/](https://getfoundry.sh/) +and then run: ```sh ./progress.sh diff --git a/docker/dockerfiles/Dockerfile.bedrock-init b/docker/dockerfiles/Dockerfile.bedrock-init index 38a4be0..77e356c 100644 --- a/docker/dockerfiles/Dockerfile.bedrock-init +++ b/docker/dockerfiles/Dockerfile.bedrock-init @@ -4,13 +4,7 @@ FROM ubuntu:22.04 ARG DEBIAN_FRONTEND=noninteractive # Install required packages. -RUN apt-get update && apt install -y curl wget git rsync build-essential openssl python3 python3-pip aria2 zstd lz4 - -# Install Go. -RUN curl -sSL https://golang.org/dl/go1.21.6.linux-amd64.tar.gz | tar -v -C /usr/local -xz -RUN cp /usr/local/go/bin/go /usr/bin/go - -# Install Foundry. -RUN curl -L https://foundry.paradigm.xyz | bash -RUN /root/.foundry/bin/foundryup -RUN rsync -a /root/.foundry/bin/ /usr/bin/ +# Only what the init scripts call: curl, openssl (JWT), aria2c (utils.sh +# download), unzstd/lz4 (utils.sh extractors) and coreutils/tar from the base +# image. git/wget/rsync/build-essential/python3 were unused. +RUN apt-get update && apt install -y --no-install-recommends curl ca-certificates openssl aria2 zstd lz4 && rm -rf /var/lib/apt/lists/*