forked from NilFoundation/proof-producer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 920 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
FROM ghcr.io/nilfoundation/proof-market-toolchain:base
WORKDIR /opt/nil-toolchain
COPY . /opt/nil-toolchain
RUN mkdir -p build \
&& cd ./build \
&& cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang-12 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-12 .. \
&& cmake --build . \
&& ln -s /opt/nil-toolchain/build/bin/proof-generator/proof-generator /usr/bin/proof-generator \
&& mkdir /root/.config \
&& touch /root/.config/config.ini
ARG ZKLLVM_VERSION=0.1.7
RUN DEBIAN_FRONTEND=noninteractive \
echo 'deb [trusted=yes] http://deb.nil.foundation/ubuntu/ all main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y --no-install-recommends --no-install-suggests install \
build-essential \
cmake \
git \
zkllvm=${ZKLLVM_VERSION} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/zkllvm-template