Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions beacon-chain/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}

Expand All @@ -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
Expand Down
8 changes: 5 additions & 3 deletions validator/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}

Expand All @@ -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
Expand Down