forked from clearmatics/zeth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-base
35 lines (31 loc) · 904 Bytes
/
Dockerfile-base
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
FROM alpine:3.11.5
####
# This Dockerfile builds the base image
# (installs all the dependencies) for Zeth
####
# Install necessary packages
RUN apk --update --no-cache add \
build-base \
git \
boost-dev \
gmp-dev \
procps-dev \
g++ \
gcc \
libxslt-dev \
vim \
cmake \
libressl-dev \
pkgconfig \
curl \
sudo
# Configure the environment for gRPC
RUN apk --update --no-cache add \
automake \
autoconf \
libtool
RUN git clone -b v1.28.x https://github.com/grpc/grpc /var/local/git/grpc
RUN cd /var/local/git/grpc && git submodule update --init --recursive
RUN cd /var/local/git/grpc/third_party/protobuf && ./autogen.sh && ./configure --prefix=/usr && make -j12 && make check && make install && make clean
RUN cd /var/local/git/grpc && make install
CMD ["/bin/bash"]