github.com/Blockdaemon/celo-blockchain@v0.0.0-20200129231733-e667f6b08419/Dockerfile.celo-node (about)

     1  # Build a docker image for users to run full nodes/validators
     2  # * celo_env arg is used to pre-download genesis block and static nodes
     3  # * geth_label arg is used specify which geth image to build from
     4  #
     5  # CELO_NETWORK=baklavastaging
     6  # docker build . -f Dockerfile.celo-node --build-arg celo_env=$CELO_NETWORK --build-arg geth_label=$(git rev-parse HEAD) -t us.gcr.io/celo-testnet/celo-node:$CELO_NETWORK
     7  # docker push us.gcr.io/celo-testnet/celo-node:$CELO_NETWORK
     8  
     9  ARG geth_label
    10  
    11  FROM us.gcr.io/celo-testnet/geth:${geth_label}
    12  
    13  ARG celo_env
    14  
    15  RUN apk add curl
    16  
    17  RUN mkdir /celo
    18  
    19  RUN curl https://www.googleapis.com/storage/v1/b/genesis_blocks/o/${celo_env}?alt=media > /celo/genesis.json
    20  
    21  RUN curl https://www.googleapis.com/storage/v1/b/static_nodes/o/${celo_env}?alt=media > /celo/static-nodes.json
    22  
    23  RUN curl https://www.googleapis.com/storage/v1/b/env_bootnodes/o/${celo_env}?alt=media > /celo/bootnodes