FROM golang:latest
|
|
|
|
RUN mkdir -p /go/src/github.com/tendermint/abci
|
|
WORKDIR /go/src/github.com/tendermint/abci
|
|
|
|
COPY Makefile /go/src/github.com/tendermint/abci/
|
|
|
|
# see make protoc for details on ldconfig
|
|
RUN make install_protoc && ldconfig
|
|
|
|
# killall is used in tests
|
|
RUN apt-get update && apt-get install -y \
|
|
psmisc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY glide.yaml /go/src/github.com/tendermint/abci/
|
|
COPY glide.lock /go/src/github.com/tendermint/abci/
|
|
|
|
RUN make get_vendor_deps
|
|
|
|
COPY . /go/src/github.com/tendermint/abci
|