-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (36 loc) · 1.26 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
unzip
RUN curl -o /tmp/go.tgz https://dl.google.com/go/go1.14.linux-amd64.tar.gz && \
tar -xvzf /tmp/go.tgz -C /tmp && \
mv /tmp/go /usr/local && \
rm -rf /tmp/go*
USER root
ENV HOME /root
ENV GOROOT /usr/local/go
ENV GOPATH $HOME/go
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
# RUN PROTOC_ZIP=protoc-3.7.1-linux-x86_64.zip && \
# curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/$PROTOC_ZIP && \
# unzip -o $PROTOC_ZIP -d /usr/local bin/protoc && \
# unzip -o $PROTOC_ZIP -d /usr/local 'include/*' && \
# rm -f $PROTOC_ZIP
RUN apt-get update && \
apt-get install -y --no-install-recommends git
COPY get_dependencies.sh get_dependencies.sh
RUN ./get_dependencies.sh
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-pip python3-setuptools
# RUN pip3 install protobuf==3.11.3
RUN pip3 install grpcio-tools==1.27.2 grpcio==1.27.2
RUN apt-get update && \
apt-get install -y --no-install-recommends jq
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN pip3 install pystache==0.5.4 Click==7.0