diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ab50e74 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +target/ +gui/ +test/ +*.png +*.svg +.git/ +.gitignore diff --git a/web/Dockerfile b/web/Dockerfile index 97233bf..b4a4bcc 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -4,6 +4,8 @@ FROM rust:1.95-alpine AS builder RUN apk add --no-cache musl-dev WORKDIR /app COPY . . +# 移除 gui 成员(不需要 Tauri/WebView2 依赖) +RUN sed -i 's/"core", "cli", "gui", "web"/"core", "cli", "web"/' Cargo.toml RUN cargo build --release -p qrgen-web # ── 运行阶段 ──