Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Oct 12, 2023
1 parent 44b50b1 commit d7a2a3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ FROM rust:1.62 as builder

ADD ./src ./builder/src
ADD ./Cargo.toml ./builder/Cargo.toml
ADD ./.cargo ./builder/.cargo
ADD ./build.rs ./builder/build.rs

RUN apt update && apt install -y protobuf-compiler

WORKDIR /builder

RUN rustup default nightly
Expand Down
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("src/proto/kipdb.proto")?;
tonic_build::configure()
.protoc_arg("--experimental_allow_proto3_optional")
.compile(&["src/proto/kipdb.proto"], &["src/proto"])?;
Ok(())
}

0 comments on commit d7a2a3a

Please sign in to comment.