forked from Zokrates/ZoKrates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev.Dockerfile
43 lines (30 loc) · 1 KB
/
dev.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
35
36
37
38
39
40
41
42
43
FROM ubuntu:14.04
MAINTAINER JacobEberhardt <[email protected]>, Dennis Kuhnert <[email protected]>, Thibaut Schaeffer <[email protected]>
RUN useradd -u 1000 -m zokrates
ARG RUST_TOOLCHAIN=nightly-2018-06-04
ARG LIBSNARK_COMMIT=f7c87b88744ecfd008126d415494d9b34c4c1b20
ENV LIBSNARK_SOURCE_PATH=/home/zokrates/libsnark-$LIBSNARK_COMMIT
ENV WITH_LIBSNARK=1
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
USER zokrates
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain $RUST_TOOLCHAIN -y
ENV PATH=/home/zokrates/.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 /home/zokrates
COPY --chown=zokrates:zokrates . ZoKrates
RUN cd ZoKrates \
&& ./build.sh