From fad4867402c92543cef0a81f37d5f012f2ce45a0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 11 Apr 2024 18:58:30 +0100 Subject: [PATCH] build(docker): include default toml files in build context --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 074d9e5..faa564f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,8 @@ RUN cargo chef cook --profile "$CARGO_PROFILE" --recipe-path recipe.json # Build application COPY Cargo.toml ./ COPY src src +COPY default.toml ./ +COPY server-default.toml ./ ARG CARGO_PROFILE RUN cargo build --profile "$CARGO_PROFILE" --bin git-next RUN if test "$CARGO_PROFILE" == "release" ; then strip target/release/git-next ; fi @@ -22,9 +24,9 @@ FROM docker.io/debian:stable-20240211-slim AS runtime WORKDIR /app RUN apt-get update && \ apt-get install --no-install-recommends -y \ - libssl3=3.0.11-1~deb12u2 \ - ca-certificates=20230311 \ - && \ + libssl3=3.0.11-1~deb12u2 \ + ca-certificates=20230311 \ + && \ rm -rf /var/lib/apt/lists/* USER 1000