From 0f5dccdbc3f1b5cbd719dd6dc9a376494847a7e6 Mon Sep 17 00:00:00 2001 From: Benoit Ranque Date: Tue, 19 Mar 2024 19:05:26 -0400 Subject: [PATCH] update dockerfile for new package layout --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1e9fd0..cb5f094 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app FROM chef AS planner COPY Cargo.toml ./ COPY Cargo.lock ./ -COPY src src +COPY crates crates RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder @@ -14,8 +14,8 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json COPY Cargo.toml ./ COPY Cargo.lock ./ -COPY src src -RUN cargo build --locked --profile release --package ndc-clickhouse --bin ndc-clickhouse +COPY crates crates +RUN cargo build --locked --profile release --package ndc-clickhouse FROM ubuntu:latest AS runtime RUN apt-get update && apt-get install -y ca-certificates