From 6add4aa904d71520d8bd1f57921b409c740152a0 Mon Sep 17 00:00:00 2001 From: lodekeeper Date: Fri, 20 Mar 2026 11:42:49 +0000 Subject: [PATCH] fix: propagate P2P_PORT and QUIC_PORT as ENV in Dockerfile Build args P2P_PORT and QUIC_PORT from docker-compose were not declared as ARG/ENV in the Dockerfile, so they were unavailable at container runtime. This caused --quicPort= to be passed as empty which crashes Lodestar. Add ARG + ENV declarations for both ports, matching the pattern used by other consensus client packages (Lighthouse, Prysm, Teku). --- beacon-chain/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon-chain/Dockerfile b/beacon-chain/Dockerfile index ffd47d4..3c39127 100644 --- a/beacon-chain/Dockerfile +++ b/beacon-chain/Dockerfile @@ -5,11 +5,15 @@ FROM chainsafe/lodestar:${UPSTREAM_VERSION} ARG NETWORK ARG STAKER_SCRIPTS_VERSION ARG DATA_DIR +ARG P2P_PORT +ARG QUIC_PORT ENV JWT_FILE_PATH=/jwtsecret.hex \ BEACON_API_PORT=3500 \ CLIENT_BIN=/usr/app/lodestar \ DATA_DIR=${DATA_DIR} \ + P2P_PORT=${P2P_PORT} \ + QUIC_PORT=${QUIC_PORT} \ STAKER_SCRIPTS_URL=https://github.com/dappnode/staker-package-scripts/releases/download/${STAKER_SCRIPTS_VERSION} COPY entrypoint.sh /usr/local/bin/entrypoint.sh