diff --git a/.dockerignore b/.dockerignore index 2f7896d1d..c31f33b9b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ target/ +.cargo diff --git a/Dockerfile b/Dockerfile index 05dbf2425..2fd29ea43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ FROM chef AS builder WORKDIR /build COPY --from=planner /app/recipe.json recipe.json +RUN apt-get update && apt-get install -y cmake libclang-dev + # Build dependencies and cache them in a Docker layer RUN cargo chef cook --release --recipe-path recipe.json