From 36cd0277c927a181723b5c87d49308b31300fc88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:18:49 +0000 Subject: [PATCH 1/2] Initial plan From e3bd30f2e77d01dea42950ddaf5823abbd035085 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:12:24 +0000 Subject: [PATCH 2/2] Fix arm64 QEMU build failure: replace apt-get curl with Alpine multi-stage build Agent-Logs-Url: https://github.com/dappnode/DAppNodePackage-lighthouse-generic/sessions/30d3b235-5661-4f5f-a936-b79bd44e4a6c Co-authored-by: Marketen <36164126+Marketen@users.noreply.github.com> --- beacon-chain/Dockerfile | 8 +++++--- validator/Dockerfile | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/beacon-chain/Dockerfile b/beacon-chain/Dockerfile index 4f5a5c6..2031b9e 100644 --- a/beacon-chain/Dockerfile +++ b/beacon-chain/Dockerfile @@ -1,3 +1,6 @@ +FROM --platform=$TARGETPLATFORM alpine:3.20 AS curl-stage +RUN apk add --no-cache curl + ARG UPSTREAM_VERSION FROM sigp/lighthouse:${UPSTREAM_VERSION} @@ -16,9 +19,8 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh ADD ${STAKER_SCRIPTS_URL}/consensus_tools.sh /etc/profile.d/ -RUN rm -rf /var/lib/apt/lists/* && \ - apt-get update && apt-get --yes install curl && apt-get clean && \ - chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/consensus_tools.sh +COPY --from=curl-stage /usr/bin/curl /usr/bin/curl +RUN chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/consensus_tools.sh # This env changes the variant # Placed at the end to regenerate the least amount of layers diff --git a/validator/Dockerfile b/validator/Dockerfile index 3f231ef..3c49516 100644 --- a/validator/Dockerfile +++ b/validator/Dockerfile @@ -1,3 +1,6 @@ +FROM --platform=$TARGETPLATFORM alpine:3.20 AS curl-stage +RUN apk add --no-cache curl + ARG UPSTREAM_VERSION FROM sigp/lighthouse:${UPSTREAM_VERSION} @@ -15,9 +18,8 @@ ENV VALIDATOR_PORT=3500 \ ADD ${STAKER_SCRIPTS_URL}/consensus_tools.sh /etc/profile.d/ -RUN rm -rf /var/lib/apt/lists/* && \ - apt-get update && apt-get --yes install curl && apt-get clean && \ - chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/consensus_tools.sh +COPY --from=curl-stage /usr/bin/curl /usr/bin/curl +RUN chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/consensus_tools.sh # This env changes the variant # Placed at the end to regenerate the least amount of layers