diff --git a/libs/rapidsnark.Dockerfile b/libs/rapidsnark.Dockerfile new file mode 100644 index 00000000..1a8cf1f7 --- /dev/null +++ b/libs/rapidsnark.Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:22.04 + +ARG DEBIAN_FRONTEND=noninteractive + +# Install Node.js, Yarn and required dependencies +RUN apt-get update \ + && apt-get install -y curl git gnupg build-essential cmake libgmp-dev libsodium-dev nasm curl m4 \ + && curl --silent --location https://deb.nodesource.com/setup_12.x | bash - \ + && apt-get install -y nodejs + +RUN git clone https://github.com/Orbiter-Finance/rapidsnark.git /rapidsnark +WORKDIR /rapidsnark +RUN git submodule init +RUN git submodule update +./build_gmp.sh host +mkdir build_prover && cd build_prover +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package +make -j$(nproc) && make install + +ENTRYPOINT ["/rapidsnark/package/build/prover_cuda"] diff --git a/packages/prover/Dockerfile b/packages/prover/Dockerfile index d7fe17bc..2007b8b8 100644 --- a/packages/prover/Dockerfile +++ b/packages/prover/Dockerfile @@ -36,10 +36,11 @@ RUN npm install -g n RUN n 22 RUN npm install -g yarn snarkjs -RUN git clone -b feat/gpu https://github.com/zkemail/ether-email-auth.git +RUN git clone -b refactor https://github.com/zkemail/ether-email-auth.git WORKDIR /ether-email-auth/packages/prover RUN pip install -r requirements.txt RUN cp ./circom_proofgen.sh /root +RUN cp ./email_auth_with_body_parsing_with_qp_encoding /root WORKDIR /root RUN ls /root RUN mkdir params