-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 806 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (20 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the specific Rust version mentioned in the README
FROM rust:1.88.0-slim
# Install system dependencies required for Git dependencies and crypto libraries
RUN apt-get update && apt-get install -y \
git \
pkg-config \
libssl-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy the repository files into the container
COPY . .
# Pre-build the binaries during the image build phase
# This ensures the reviewer doesn't have to wait for compilation when running the container
RUN cargo build --bin issuer
RUN cargo build --bin prover
RUN cargo build --bin verifier
# Run the three example binaries sequentially when the container starts
CMD ["sh", "-c", "./target/debug/issuer && ./target/debug/prover && ./target/debug/verifier"]