forked from scipr-lab/libsnark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
18 lines (14 loc) · 619 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:16.04
WORKDIR /root
RUN apt-get update && \
apt-get install -y \
wget unzip curl \
build-essential cmake git libgmp3-dev libprocps4-dev python-markdown libboost-all-dev libssl-dev pkg-config
RUN git clone https://github.com/scipr-lab/libsnark/ \
&& cd libsnark \
&& git submodule init && git submodule update \
&& mkdir build && cd build && cmake .. \
&& make \
&& DESTDIR=/usr/local make install \
NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 CURVE=ALT_BN128 FEATUREFLAGS="-DBINARY_OUTPUT=1 -DMONTGOMERY_OUTPUT=1 -DNO_PT_COMPRESSION=1"
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib