merkle-root-updater/Dockerfile

20 lines
520 B
Docker
Raw Permalink Normal View History

2022-09-02 21:39:28 +03:00
FROM node:14
WORKDIR /app
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install zkutil
COPY --from=tornadocash/tornado-trees \
/app/artifacts/circuits/BatchTreeUpdate.params \
/app/artifacts/circuits/BatchTreeUpdate \
/app/artifacts/circuits/BatchTreeUpdate.dat \
/app/artifacts/circuits/BatchTreeUpdate.r1cs \
./snarks/
COPY package.json yarn.lock ./
RUN yarn && yarn cache clean --force
COPY . .
CMD ["yarn", "start"]