blob: 40668ebdc75cb0e0abeffa5253bd616ce1dc4d7c [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
Giorgi Lekveishvilic548ec52020-03-16 21:59:14 +040018RUN go get -u google.golang.org/grpc
19
20WORKDIR /src/protoc
21RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
22RUN unzip protoc-3.11.4-linux-x86_64.zip
23RUN rm protoc-3.11.4-linux-x86_64.zip
24ENV PATH=/src/protoc/bin:$PATH
25
26RUN go get -u github.com/golang/protobuf/protoc-gen-go
27RUN go get -u google.golang.org/protobuf/encoding/prototext
Giorgi Lekveishvilib8f089f2020-03-18 23:28:12 +040028RUN go get -u github.com/google/uuid
Giorgi Lekveishvilic548ec52020-03-16 21:59:14 +040029
30WORKDIR /src/go/src/pcloud