Dockerfile
This commit is contained in:
parent
ec08265740
commit
3dbb5db77a
16
.dockerignore
Normal file
16
.dockerignore
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Dockerfile
|
||||||
|
.git
|
||||||
|
.dockerignore
|
||||||
|
**/node_modules
|
||||||
|
**/target
|
||||||
|
**/phase1radix2m*
|
||||||
|
/phase2/pkg
|
||||||
|
/phase2/*.params
|
||||||
|
/phase2/*.json
|
||||||
|
/phase2/*.bin
|
||||||
|
/phase2/*.circom
|
||||||
|
/phase2/verifier.sol
|
||||||
|
/powersoftau/challenge*
|
||||||
|
/powersoftau/response*
|
||||||
|
/powersoftau/transcript
|
||||||
|
/powersoftau/tmp_*
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM rust:slim as builder
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y pkg-config libssl-dev && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . .
|
||||||
|
RUN mkdir bin
|
||||||
|
RUN cd powersoftau && \
|
||||||
|
cargo build --release --bins && \
|
||||||
|
find ./target/release/ -maxdepth 1 -type f -perm /a+x -exec sh -c 'mv {} /build/bin/phase1_$(basename {})' \;
|
||||||
|
RUN cd phase2 && \
|
||||||
|
cargo build --release --bins && \
|
||||||
|
find ./target/release/ -maxdepth 1 -type f -perm /a+x -exec sh -c 'mv {} /build/bin/phase2_$(basename {})' \;
|
||||||
|
|
||||||
|
FROM debian:buster-slim
|
||||||
|
COPY --from=builder /build/bin/* /usr/bin/
|
@ -0,0 +1 @@
|
|||||||
|
# Trusted setup ceremony [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/tornadocash/phase2-bn254.svg)](https://hub.docker.com/r/tornadocash/phase2-bn254/builds)
|
Loading…
Reference in New Issue
Block a user