Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(docker): touch source files to force cargo recompilation

t8y275c7e11f55be
diff --git a/Dockerfile b/Dockerfile
index a1ac238504..bc22be4dc5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,6 +60,11 @@ RUN case "$TARGETARCH" in \
COPY crates/ crates/
COPY src-web/ src-web/
+# Docker COPY preserves original file timestamps, which may be older than the
+# dummy-source binary compiled above. Touch all .rs files so cargo detects the
+# source change and recompiles instead of reusing the dummy binary.
+RUN find crates/ src-web/ -name '*.rs' -exec touch {} +
+
RUN case "$TARGETARCH" in \
amd64) rust_target=x86_64-unknown-linux-gnu; lib_arch=x86_64-linux-gnu ;; \
arm64) rust_target=aarch64-unknown-linux-gnu; lib_arch=aarch64-linux-gnu ;; \