Skip to content

Commit

Permalink
Re implement branch based
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheka committed Nov 5, 2018
1 parent 0a20c73 commit 628cfc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:1.9.2-alpine3.6 AS build

ARG BRANCH=master
RUN apk add --no-cache make git

RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
RUN go get -u github.com/golang/protobuf/protoc-gen-go
RUN go get -u github.com/spacemeshos/go-spacemesh
RUN go get -u github.com/kardianos/govendor
RUN cd src/github.com/spacemeshos/go-spacemesh; govendor sync; make
RUN echo ${BRANCH}
RUN mkdir -p src/github.com/spacemeshos; cd src/github.com/spacemeshos; git clone https://github.com/spacemeshos/go-spacemesh; cd go-spacemesh; git checkout ${BRANCH}; go build; govendor sync; make
RUN cp /go/src/github.com/spacemeshos/go-spacemesh/config.toml /go

ENTRYPOINT /go/src/github.com/spacemeshos/go-spacemesh/go-spacemesh
Expand Down

0 comments on commit 628cfc6

Please sign in to comment.