-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (31 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
44 lines (31 loc) · 1.35 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM golang:1.9.7-alpine3.7
RUN apk update && apk add --update alpine-sdk git make gcc build-base musl-dev linux-headers ca-certificates nodejs-current-npm python2 curl protobuf protobuf-dev zip
RUN npx npm@5.6 i -g npm@6.2.0
# Godog
RUN go get github.com/DATA-DOG/godog/cmd/godog
# Dep
RUN go get github.com/golang/dep/cmd/dep
# Stringer
RUN go get golang.org/x/tools/cmd/stringer
# Go-bindata
RUN go get -u github.com/kevinburke/go-bindata/...
# Gencodec
RUN go get github.com/fjl/gencodec
# Moq
RUN go get github.com/matryer/moq
# Mockery
RUN go get github.com/vektra/mockery/...
# solc
RUN curl -L https://github.com/ethereum/solidity/releases/download/v0.4.24/solc-static-linux -o /bin/solc && chmod +x /bin/solc
# Docker client
ENV DOCKER_VERSION "17.12.0-ce"
RUN curl -L -o /tmp/docker-$DOCKER_VERSION.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz \
&& tar -xz -C /tmp -f /tmp/docker-$DOCKER_VERSION.tgz \
&& mv /tmp/docker/docker /usr/bin \
&& rm -rf /tmp/docker-$DOCKER_VERSION /tmp/docker
# Protoc
RUN go get -u github.com/golang/protobuf/protoc-gen-go \
&& go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \
&& go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \
&& go get -u google.golang.org/grpc \
&& go get -u github.com/golang/protobuf/proto