forked from Zokrates/ZoKrates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (23 loc) · 1 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
FROM ubuntu:14.04
MAINTAINER JacobEberhardt <[email protected]>, Dennis Kuhnert <[email protected]>
ARG libsnarkcommit=deprecated-master
WORKDIR /root
RUN apt-get update && \
apt-get install -y \
wget unzip curl \
build-essential git libgmp3-dev libprocps3-dev libgtest-dev python-markdown libboost-all-dev libssl-dev
RUN wget https://github.com/scipr-lab/libsnark/archive/$libsnarkcommit.zip \
&& mv $libsnarkcommit.zip libsnark.zip \
&& unzip libsnark.zip \
&& cd libsnark-$libsnarkcommit \
&& ./prepare-depends.sh
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain nightly-2018-02-10 -y
ENV PATH=/root/.cargo/bin:$PATH
RUN cd libsnark-$libsnarkcommit \
&& make install lib PREFIX=/usr/local \
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
COPY . /root/ZoKrates
RUN cd ZoKrates \
&& cargo build --release