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>
(cherry picked from commit 844eb30747)
This commit is contained in:
sophie committed 2026-05-18 09:30:52 +08:00
1 parent 8c877e871a
commit fed26821b7
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