Skip to content

Commit

Permalink
Download lukso config after curl is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Aug 8, 2024
1 parent 66b5709 commit 86c80fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ ARG P2P_PORT
ARG STAKER_SCRIPTS_VERSION
ARG DATA_DIR

# If NETWORK == lukso mkdir /config
RUN if [ "${NETWORK}" = "lukso" ]; then \
mkdir /config && \
curl -L https://raw.githubusercontent.com/lukso-network/network-configs/main/mainnet/shared/genesis.json -o /config/genesis.json; \
fi

ENV GETH_AUTHRPC_ADDR=0.0.0.0 \
GETH_AUTHRPC_PORT=8551 \
GETH_AUTHRPC_VHOSTS=* \
Expand All @@ -34,6 +28,12 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN apk update && apk add curl && apk cache clean && \
chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/execution_tools.sh

# If NETWORK == lukso mkdir /config
RUN if [ "${NETWORK}" = "lukso" ]; then \
mkdir /config && \
curl -L https://raw.githubusercontent.com/lukso-network/network-configs/main/mainnet/shared/genesis.json -o /config/genesis.json; \
fi

# TODO: Should we add this?
#GETH_HTTP_CORSDOMAIN="*" \
#GETH_WS_ORIGINS="*" \
Expand Down

0 comments on commit 86c80fe

Please sign in to comment.