From edf551b72a5a3dbdabbe7274cd89300875bbb8af Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Apr 2024 17:28:54 +0100 Subject: [PATCH] build(docker): don't include Cargo.lock in image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 121f06c..074d9e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM git.kemitix.net/kemitix/git-next-builder:latest AS builder WORKDIR /app -COPY Cargo.toml Cargo.lock ./ +COPY Cargo.toml ./ COPY src src RUN cargo chef prepare --recipe-path recipe.json @@ -11,7 +11,7 @@ ARG CARGO_PROFILE # Build dependencies - this is the caching Docker layer! RUN cargo chef cook --profile "$CARGO_PROFILE" --recipe-path recipe.json # Build application -COPY Cargo.toml Cargo.lock ./ +COPY Cargo.toml ./ COPY src src ARG CARGO_PROFILE RUN cargo build --profile "$CARGO_PROFILE" --bin git-next