Speed up backend image build and fix Debian 12 ODBC setup.

Use libreoffice-nogui on bookworm, gpg keyring for msodbcsql18, and BuildKit apt/pip caches.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
sophieandCursor committed 2026-05-18 08:47:33 +08:00
1 parent 2d41fc3c6e
commit 844eb30747
3 files changed
+21 -12

No files matched your search

+3
View File
@@ -174,6 +174,9 @@ fi
if [[ "${PREBUILT_MODE}" == "true" ]]; then
"${DC_CMD[@]}" "${compose_args[@]}" up -d --no-build "${services[@]}"
else
# Dockerfile 使用 apt/pip cache mount,需启用 BuildKit
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
"${DC_CMD[@]}" "${compose_args[@]}" up -d --build "${services[@]}"
fi