forked from brocaar/chirpstack-application-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 946 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
26
27
FROM golang:1.7
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-app-server
ENV PATH=$PATH:$PROJECT_PATH/build
# install tools
RUN go get github.com/golang/lint/golint
RUN go get github.com/kisielk/errcheck
RUN go get github.com/smartystreets/goconvey
RUN go get golang.org/x/tools/cmd/stringer
RUN go get github.com/jteeuwen/go-bindata/...
# grpc dependencies
RUN apt-get update && apt-get install -y unzip
RUN wget https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip && \
unzip protoc-3.0.0-linux-x86_64.zip && \
mv bin/protoc /usr/local/bin/protoc && \
mv include/google /usr/local/include/ && \
rm protoc-3.0.0-linux-x86_64.zip
RUN go get github.com/golang/protobuf/protoc-gen-go
RUN go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
RUN go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
# setup work directory
RUN mkdir -p $PROJECT_PATH
WORKDIR $PROJECT_PATH