-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 703 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:15.8.0-buster
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update -qq --fix-missing && \
apt-get install -qq -y curl build-essential libssl-dev libgmp-dev \
libsodium-dev nlohmann-json3-dev git nasm
# Install rapidsnark
RUN git clone https://github.com/iden3/rapidsnark.git && \
cd rapidsnark && \
git checkout 1c13721de4a316b0b254c310ccec9341f5e2208e && \
npm i && \
git submodule init && \
git submodule update && \
npx task createFieldSources && \
npx task buildProver
WORKDIR /kreme
COPY . /kreme/
RUN npm i && \
npm run bootstrap && \
npm run build
CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"