-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
25 lines (23 loc) · 1018 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:1.10 AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
git make curl build-essential bash git autoconf automake libtool unzip file ca-certificates
RUN git clone /~https://github.com/google/protobuf /tmp/protobuf && \
cd /tmp/protobuf && \
git checkout 3.5.x && \
./autogen.sh && \
./configure && make install
RUN ldconfig
RUN go get -v github.com/LK4D4/vndr
RUN go get -v github.com/golang/protobuf/protoc-gen-go
RUN go get -v github.com/gogo/protobuf/protoc-gen-gofast
RUN go get -v github.com/gogo/protobuf/proto
RUN go get -v github.com/gogo/protobuf/gogoproto
RUN go get -v github.com/gogo/protobuf/protoc-gen-gogo
RUN go get -v github.com/gogo/protobuf/protoc-gen-gogofast
RUN go get -v github.com/stevvooe/protobuild
RUN go get -v github.com/golang/lint/golint
WORKDIR /go/src/github.com/stellarproject/radiant
COPY . /go/src/github.com/stellarproject/radiant
RUN make
FROM scratch
COPY --from=build /go/src/github.com/stellarproject/radiant/bin/* /bin/