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