tornado-root-updater/Dockerfile
2021-05-05 17:37:14 +03:00

21 lines
539 B
Docker

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 . .
EXPOSE 8000
ENTRYPOINT ["yarn", "start"]