ceremony dockerfile

This commit is contained in:
poma 2020-02-29 16:44:43 +03:00
parent c3dd7fb2ab
commit 1b5decdf67
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -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