phase2-bn254/Dockerfile

18 lines
599 B
Docker
Raw Normal View History

2020-01-18 20:39:27 +03:00
FROM rust:slim as builder
RUN apt-get update && \
apt-get install -y pkg-config libssl-dev && \
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
2020-04-09 21:22:15 +03:00
COPY --from=builder /build/bin/* /usr/bin/
WORKDIR /data