1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/Dockerfile
2018-06-30 00:32:15 -04:00

39 lines
901 B
Docker

FROM ubuntu:14.04
MAINTAINER JacobEberhardt <jacob.eberhardt@tu-berlin.de>, Dennis Kuhnert <mail@kyroy.com>
ARG RUST_TOOLCHAIN=nightly-2018-06-04
ARG LIBSNARK_COMMIT=f7c87b88744ecfd008126d415494d9b34c4c1b20
ENV LIBSNARK_SOURCE_PATH=/root/libsnark-$LIBSNARK_COMMIT
ENV WITH_LIBSNARK=1
WORKDIR /root/
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
curl \
libboost-all-dev \
libgmp3-dev \
libprocps3-dev \
libssl-dev \
pkg-config \
python-markdown \
git
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain $RUST_TOOLCHAIN -y
ENV PATH=/root/.cargo/bin:$PATH
RUN git clone https://github.com/scipr-lab/libsnark.git $LIBSNARK_SOURCE_PATH
WORKDIR $LIBSNARK_SOURCE_PATH
RUN git checkout $LIBSNARK_COMMIT
RUN git submodule update --init --recursive
WORKDIR /root/
COPY . ZoKrates
#RUN cd ZoKrates \
# && ./build.sh