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 && \
|
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/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /build
|
RUN git clone -b ceremony https://github.com/tornadocash/phase2-bn254
|
||||||
COPY . .
|
WORKDIR /phase2-bn254/phase2
|
||||||
RUN mkdir bin
|
RUN cargo build --release --bin tornado
|
||||||
RUN cd powersoftau && \
|
CMD cargo run --release --bin tornado
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user