blob: 698a47b1682617bcb8d3baa19a72bf1cd618bdba [file] [log] [blame]
Giorgi Lekveishvilic548ec52020-03-16 21:59:14 +04001FROM ubuntu:latest
2
3RUN apt-get update --fix-missing
4RUN apt-get -y upgrade
5RUN apt-get -y install wget git bash unzip
6
7WORKDIR /tmp
8RUN wget https://dl.google.com/go/go1.14.linux-amd64.tar.gz
9RUN tar -xvf go1.14.linux-amd64.tar.gz
10RUN mv go /usr/local
11RUN rm go1.14.linux-amd64.tar.gz
12
13ENV GOROOT=/usr/local/go
14ENV GOPATH=/src/go
15ENV GOBIN=$GOPATH/bin
16ENV PATH=$GOBIN:$GOROOT/bin:$PATH
17
18RUN go version
19
20RUN go get -u google.golang.org/grpc
21
22WORKDIR /src/protoc
23RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
24RUN unzip protoc-3.11.4-linux-x86_64.zip
25RUN rm protoc-3.11.4-linux-x86_64.zip
26ENV PATH=/src/protoc/bin:$PATH
27
28RUN go get -u github.com/golang/protobuf/protoc-gen-go
29RUN go get -u google.golang.org/protobuf/encoding/prototext
30
31WORKDIR /src/go/src/pcloud