@@ -27,47 +27,47 @@ ENV DEBIAN_FRONTEND=noninteractive
2727
2828# Install runtime dependencies
2929RUN apt-get update && apt-get install -y \
30- curl \
31- jq \
32- ca-certificates \
33- openssl \
34- && rm -rf /var/lib/apt/lists/*
30+ curl \
31+ jq \
32+ ca-certificates \
33+ openssl \
34+ && rm -rf /var/lib/apt/lists/*
3535
3636# Install dasel for JSON manipulation
37- RUN curl -sSL "https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64 " -o /usr/local/bin/dasel && \
37+ RUN curl -sSL "https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_$(dpkg --print-architecture) " -o /usr/local/bin/dasel && \
3838 chmod +x /usr/local/bin/dasel
3939
4040# Install yq for YAML parsing
41- RUN curl -sSL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 " -o /usr/local/bin/yq && \
41+ RUN curl -sSL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$(dpkg --print-architecture) " -o /usr/local/bin/yq && \
4242 chmod +x /usr/local/bin/yq
4343
4444# Install Geth for the given architecture.
4545RUN ARCH=$(dpkg --print-architecture) && \
46- echo "Detected architecture: $ARCH" && \
47- case "$ARCH" in \
48- "amd64" ) \
49- GETH_URL="https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.15.11-36b2371c.tar.gz" && \
50- GETH_SHA="a14a4285daedf75ea04a7a298e6caa48d566a2786c93fc5e86ec2c5998c92455" && \
51- GETH_DIR="geth-linux-amd64-1.15.11-36b2371c" && \
52- VERIFY_SHA="true" \
53- ;; \
54- "arm64" ) \
55- GETH_URL="https://gethstore.blob.core.windows.net/builds/geth-linux-arm64-1.15.11-36b2371c.tar.gz" && \
56- GETH_SHA="148ec84db2268fa846ae68f6445f0c98d33e95069e40fe8c74b43ea5eb53df7b" && \
57- GETH_DIR="geth-linux-arm64-1.15.11-36b2371c" && \
58- VERIFY_SHA="true" \
59- ;; \
60- *) \
61- echo "Unsupported architecture: $ARCH" && exit 1 \
62- ;; \
63- esac && \
64- echo "Downloading: $GETH_URL" && \
65- curl -L "$GETH_URL" -o geth.tar.gz && \
66- echo "$GETH_SHA geth.tar.gz" | sha256sum -c - && \
67- tar -xvf geth.tar.gz && \
68- mv "$GETH_DIR/geth" /usr/local/bin/geth && \
69- rm -rf geth.tar.gz "$GETH_DIR" && \
70- chmod +x /usr/local/bin/geth
46+ echo "Detected architecture: $ARCH" && \
47+ case "$ARCH" in \
48+ "amd64" ) \
49+ GETH_URL="https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.15.11-36b2371c.tar.gz" && \
50+ GETH_SHA="a14a4285daedf75ea04a7a298e6caa48d566a2786c93fc5e86ec2c5998c92455" && \
51+ GETH_DIR="geth-linux-amd64-1.15.11-36b2371c" && \
52+ VERIFY_SHA="true" \
53+ ;; \
54+ "arm64" ) \
55+ GETH_URL="https://gethstore.blob.core.windows.net/builds/geth-linux-arm64-1.15.11-36b2371c.tar.gz" && \
56+ GETH_SHA="148ec84db2268fa846ae68f6445f0c98d33e95069e40fe8c74b43ea5eb53df7b" && \
57+ GETH_DIR="geth-linux-arm64-1.15.11-36b2371c" && \
58+ VERIFY_SHA="true" \
59+ ;; \
60+ *) \
61+ echo "Unsupported architecture: $ARCH" && exit 1 \
62+ ;; \
63+ esac && \
64+ echo "Downloading: $GETH_URL" && \
65+ curl -L "$GETH_URL" -o geth.tar.gz && \
66+ echo "$GETH_SHA geth.tar.gz" | sha256sum -c - && \
67+ tar -xvf geth.tar.gz && \
68+ mv "$GETH_DIR/geth" /usr/local/bin/geth && \
69+ rm -rf geth.tar.gz "$GETH_DIR" && \
70+ chmod +x /usr/local/bin/geth
7171
7272# Install lighthouse consensus tools
7373RUN curl -sSL "https://github.com/sigp/lighthouse/releases/download/v5.3.0/lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz" -o lighthouse.tar.gz && \
0 commit comments