-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (23 loc) · 1005 Bytes
/
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 Dennis Kuhnert <dennis.kuhnert@campus.tu-berlin.de>
ARG libsnarkcommit=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-2017-03-20 -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/VerifiableStatementCompiler
RUN cd VerifiableStatementCompiler \
&& cargo build --release