Skip to content

Commit f920809

Browse files
committed
install docker for reproduceable builds
1 parent 4ce6df4 commit f920809

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docker/proof-aggregator.Dockerfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,28 @@ COPY crates /aligned_layer/crates/
1414
COPY aggregation_mode /aligned_layer/aggregation_mode/
1515
WORKDIR /aligned_layer
1616

17-
RUN IN_DOCKER=true cargo build --manifest-path ./aggregation_mode/Cargo.toml --features prove --release --bin proof_aggregator_cpu
17+
RUN apt update -y && apt install -y libssl-dev ca-certificates
18+
19+
# Install required tools and set up Docker repository
20+
# Installing docker is necessary for SP1 and Risc0 wrapping to snark
21+
RUN apt-get update && apt-get install -y \
22+
ca-certificates \
23+
curl \
24+
gnupg \
25+
lsb-release && \
26+
install -m 0755 -d /etc/apt/keyrings && \
27+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
28+
chmod a+r /etc/apt/keyrings/docker.asc && \
29+
echo \
30+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
31+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
32+
tee /etc/apt/sources.list.d/docker.list > /dev/null && \
33+
apt-get update
34+
35+
# Note, we don't need to install docker-ce and containerd.io as we pass the docker engine socket via docker volume
36+
RUN apt-get install docker-ce-cli docker-buildx-plugin docker-compose-plugin -y
37+
38+
RUN cargo build --manifest-path ./aggregation_mode/Cargo.toml --features prove --release --bin proof_aggregator_cpu
1839

1940
FROM debian:bookworm-slim AS final
2041

0 commit comments

Comments
 (0)