From 1b5decdf67b0d4d8fcac2464e8eef50e04838162 Mon Sep 17 00:00:00 2001 From: poma Date: Sat, 29 Feb 2020 16:44:43 +0300 Subject: [PATCH] ceremony dockerfile --- Dockerfile | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 610503d..cc026ff 100644 --- a/Dockerfile +++ b/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