forked from zkemail/relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.py
35 lines (31 loc) · 984 Bytes
/
common.py
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
import modal
image = (
modal.Image.from_registry(
"aayushg0/emailwallet:v0",
setup_dockerfile_commands=[
"RUN ls /",
"RUN cp -r /rapidsnark /root/rapidsnark",
"RUN cp -r /relayer /root/relayer",
"RUN cp -r /zk-email-verify /root/zk-email-verify",
],
add_python="3.10",
# force_build=True
)
.pip_install_from_requirements("requirements.txt")
)
stub = modal.Stub(image=image)
# staging_image = (
# modal.Image.from_registry(
# "aayushg0/emailwallet:v0",
# setup_dockerfile_commands=[
# "RUN ls /",
# "RUN cp -r /rapidsnark /root/rapidsnark",
# "RUN cp -r /relayer /root/relayer",
# "RUN cp -r /zk-email-verify /root/zk-email-verify",
# ],
# add_python="3.10",
# # force_build=True
# )
# .pip_install_from_requirements("requirements.txt")
# )
# staging_stub = modal.Stub(image=image)