forked from zkemail/relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemailwallet.Dockerfile
34 lines (27 loc) · 1.22 KB
/
emailwallet.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 aayushg0/rapidsnark:latest AS rapidsnark
FROM aayushg0/relayer:v0 as relayer
FROM aayushg0/zk-email-wallet:v0 as zk-email-wallet
FROM rust:latest
ARG ZKEMAIL_BRANCH_NAME=anon_wallet
ARG CIRCUIT_NAME=wallet
# ARG RELAYER_BRANCH_NAME=modal_anon
ARG ZKEMAIL_COMMIT=e6592d86cb200d98d46db62d63404e7214a11569
RUN apt-get update && apt-get upgrade -y
# Update the package list and install necessary dependencies
RUN apt-get update && \
apt install -y nodejs npm cmake build-essential pkg-config libssl-dev libgmp-dev libsodium-dev nasm git awscli
RUN npm install -g yarn npx
# Clone rapidsnark repository at the latest commit and set it as the working directory
COPY --from=rapidsnark /rapidsnark/build /rapidsnark/build
WORKDIR /rapidsnark/build
RUN chmod +x /rapidsnark/build/prover
# Clone zk email repository at the latest commit and set it as the working directory
COPY --from=zk-email-wallet /zk-email-verify /zk-email-verify
WORKDIR /zk-email-verify
RUN yarn install
RUN yarn add tsx psl
# Clone the relayer repository at the latest commit and set it as the working directory
COPY --from=relayer /relayer /relayer
RUN chmod +x /relayer/target/release/relayer
# Make necessary files executable
RUN chmod +x /relayer/src/circom_proofgen.sh