github.com/lazyledger/lazyledger-core@v0.35.0-dev.0.20210613111200-4c651f053571/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 tendermint repo 9 ENV REPO $GOPATH/src/github.com/tendermint/tendermint 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 Tendermint 22 RUN make install 23 24 RUN tendermint testnet \ 25 --config $REPO/test/docker/config-template.toml \ 26 --node-dir-prefix="mach" \ 27 --v=4 \ 28 --populate-persistent-peers=false \ 29 --o=$REPO/test/p2p/data 30 31 # Now copy in the code 32 # NOTE: this will overwrite whatever is in vendor/ 33 COPY . $REPO 34 35 # expose the volume for debugging 36 VOLUME $REPO 37 38 EXPOSE 26656 39 EXPOSE 26657