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