2016-07-23 12:48:30 -04:00
|
|
|
# Pull base image.
|
2017-01-28 00:12:39 -05:00
|
|
|
FROM golang:1.7.4
|
2016-07-23 12:48:30 -04:00
|
|
|
|
2016-09-10 20:11:45 -04:00
|
|
|
# Grab deps (jq, hexdump, xxd, killall)
|
2016-07-24 14:08:47 -04:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2017-03-03 14:00:51 -05:00
|
|
|
jq bsdmainutils vim-common psmisc netcat
|
2016-07-24 14:08:47 -04:00
|
|
|
|
2017-03-05 14:59:02 -05:00
|
|
|
# Setup tendermint repo
|
2016-09-10 20:11:45 -04:00
|
|
|
ENV REPO $GOPATH/src/github.com/tendermint/tendermint
|
|
|
|
WORKDIR $REPO
|
2017-03-05 14:59:02 -05:00
|
|
|
|
|
|
|
# Install the vendored dependencies before copying code
|
|
|
|
# docker caching prevents reinstall on code change!
|
2016-09-10 20:11:45 -04:00
|
|
|
ADD glide.yaml glide.yaml
|
|
|
|
ADD glide.lock glide.lock
|
|
|
|
ADD Makefile Makefile
|
2016-07-24 14:08:47 -04:00
|
|
|
RUN make get_vendor_deps
|
|
|
|
|
2017-03-05 20:39:52 -05:00
|
|
|
# Install the apps
|
|
|
|
ADD scripts scripts
|
|
|
|
RUN bash scripts/install_abci_apps.sh
|
|
|
|
|
2016-10-12 12:28:34 -04:00
|
|
|
# Now copy in the code
|
2016-09-10 20:11:45 -04:00
|
|
|
COPY . $REPO
|
2016-07-24 14:08:47 -04:00
|
|
|
|
2016-08-25 18:27:21 -04:00
|
|
|
RUN go install ./cmd/tendermint
|
2016-07-24 14:08:47 -04:00
|
|
|
|
2016-12-22 19:30:09 -05:00
|
|
|
# expose the volume for debugging
|
|
|
|
VOLUME $REPO
|
|
|
|
|
2016-07-24 14:08:47 -04:00
|
|
|
EXPOSE 46656
|
|
|
|
EXPOSE 46657
|