ceremony dockerfile
This commit is contained in:
parent
c3dd7fb2ab
commit
1b5decdf67
21
Dockerfile
21
Dockerfile
@ -1,17 +1,8 @@
|
||||
FROM rust:slim as builder
|
||||
FROM rust:slim
|
||||
RUN apt-get update && \
|
||||
apt-get install -y pkg-config libssl-dev && \
|
||||
apt-get install -y pkg-config libssl-dev git && \
|
||||
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/
|
||||
WORKDIR /data
|
||||
RUN git clone -b ceremony https://github.com/tornadocash/phase2-bn254
|
||||
WORKDIR /phase2-bn254/phase2
|
||||
RUN cargo build --release --bin tornado
|
||||
CMD cargo run --release --bin tornado
|
||||
|
Loading…
Reference in New Issue
Block a user