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