Skip to content

Instantly share code, notes, and snippets.

@danielcooperxyz
Created March 27, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielcooperxyz/bda847cc6e663355baae00a41e7ae1e8 to your computer and use it in GitHub Desktop.
Save danielcooperxyz/bda847cc6e663355baae00a41e7ae1e8 to your computer and use it in GitHub Desktop.
FROM golang:1.10-alpine
RUN apk update
RUN apk add git cmake make g++
WORKDIR /src/
RUN git clone https://github.com/zeromq/libzmq
WORKDIR /src/libzmq
RUN mkdir cmake-build
WORKDIR /src/libzmq/cmake-build
RUN cmake .. && make -j 4
RUN make test; exit 0
RUN make install
RUN ldconfig /
WORKDIR /go/
RUN go get github.com/rberg2/sawtooth-go-sdk; exit 0
RUN go get github.com/golang/protobuf; exit 0
RUN go get github.com/satori/go.uuid; exit 0
RUN go get github.com/pebbe/zmq4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment