From 9503d7d72c9ccfb343efb71d42b84b2787b3c7a4 Mon Sep 17 00:00:00 2001 From: argszero Date: Fri, 21 Aug 2026 00:08:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20COPY=20config/=20into=20builder?= =?UTF-8?q?=20stage=20=E2=80=94=20include=5Fstr!=20default=20config=20need?= =?UTF-8?q?s=20it=20at=20compile=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6dbcf1a..e4cf797 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,8 @@ RUN apt-get update \ COPY Cargo.toml Cargo.lock ./ COPY src ./src COPY ui ./ui +# main.rs include_str!("../config/config.example.toml") 需要编译期存在该文件(a39e809 内嵌默认配置) +COPY config ./config RUN cargo build --release --locked # ---------- runtime ----------