github.com/aakash4dev/cometbft@v0.38.2/test/docker/Dockerfile (about)

     1  FROM golang:1.15
     2  
     3  # Grab deps (jq, hexdump, xxd, killall)
     4  RUN apt-get update && \
     5    apt-get install -y --no-install-recommends \
     6    jq bsdmainutils vim-common psmisc netcat curl
     7  
     8  # Setup CometBFT repo
     9  ENV REPO $GOPATH/src/github.com/aakash4dev/cometbft
    10  ENV GOBIN $GOPATH/bin
    11  WORKDIR $REPO
    12  
    13  # Copy in the code
    14  # TODO: rewrite to only copy Makefile & other files?
    15  COPY . $REPO
    16  
    17  # Install the vendored dependencies
    18  # docker caching prevents reinstall on code change!
    19  RUN make tools
    20  
    21  # install ABCI CLI
    22  RUN make install_abci
    23  
    24  # install CometBFT
    25  RUN make install
    26  
    27  RUN cometbft testnet \
    28    --config $REPO/test/docker/config-template.toml \
    29    --node-dir-prefix="mach" \
    30    --v=4 \
    31    --populate-persistent-peers=false \
    32    --o=$REPO/test/p2p/data
    33  
    34  # Now copy in the code
    35  # NOTE: this will overwrite whatever is in vendor/
    36  COPY . $REPO
    37  
    38  # expose the volume for debugging
    39  VOLUME $REPO
    40  
    41  EXPOSE 26656
    42  EXPOSE 26657