There was an error while loading. Please reload this page.
1 parent aff8502 commit cca3362Copy full SHA for cca3362
1 file changed
Dockerfile
@@ -31,8 +31,8 @@ RUN cargo build --release 2>/dev/null || true
31
COPY src/ src/
32
COPY benches/ benches/
33
34
-# 重新构建实际应用(touch 触发重新编译)
35
-RUN touch src/main.rs && cargo build --release
+# 重新构建实际应用(touch 所有源文件触发重新编译)
+RUN find src -type f -exec touch {} + && cargo build --release
36
37
# ─────────────────────────────────────────────────────────────────────────────
38
# 阶段 2:runtime — 最小化运行时镜像
0 commit comments