tendermint/test/docker/Dockerfile

34 lines
717 B
Docker
Raw Normal View History

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
# 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 \
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
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!
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
COPY . $REPO
2016-07-24 14:08:47 -04:00
RUN go install ./cmd/tendermint
2016-07-24 14:08:47 -04:00
# expose the volume for debugging
VOLUME $REPO
2016-07-24 14:08:47 -04:00
EXPOSE 46656
EXPOSE 46657