8000 Fixed build base docker image by AntoineRondelet · Pull Request #257 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed build base docker image #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions Dockerfile-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.11.5
FROM alpine:3.12

####
# This Dockerfile builds the base image
Expand All @@ -10,26 +10,36 @@ RUN apk --update --no-cache add \
build-base \
git \
boost-dev \
# Necessary for static builds
boost-static \
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 \
sudo \
# Necessary for gRPC
automake \
autoconf \
libtool
libtool \
# Debug tools
vim \
curl

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

RUN cd /var/local/git/grpc \
&& mkdir -p cmake/build \
&& cd cmake/build \
&& cmake -DCMAKE_BUILD_TYPE=Release \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DgRPC_SSL_PROVIDER=package \
../.. \
&& make -j4 install

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion depends/libsnark
Submodule libsnark updated 0 files
0