From 81f8256c3795d8dafa90a3c4a80639e0c0a0c257 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 11 Feb 2023 14:30:42 -0600 Subject: [PATCH] fix: container builds support protobuf compilation --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ace6944..0bff347 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ -FROM docker.io/library/rust:1.67.0 as builder - +FROM docker.io/library/rust:1-bookworm as builder +RUN apt-get update \ + && apt-get install -y cmake protobuf-compiler \ + && rm -rf /var/lib/apt/lists/* RUN USER=root cargo install cargo-auditable RUN USER=root cargo new --bin nostr-rs-relay WORKDIR ./nostr-rs-relay @@ -12,6 +14,8 @@ RUN rm src/*.rs # copy project source code COPY ./src ./src +COPY ./proto ./proto +COPY ./build.rs ./build.rs # build auditable release using locked deps RUN rm ./target/release/deps/nostr*relay*