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

+2 -2
View File
@@ -23,7 +23,7 @@ services:
context: .
dockerfile: backend/Dockerfile
args:
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-python:3.12-slim}
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-python:3.12-slim-bookworm}
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://mirrors.aliyun.com/pypi/simple}
PIP_EXTRA_INDEX_URL: ${PIP_EXTRA_INDEX_URL:-}
container_name: hxops-backend
@@ -65,7 +65,7 @@ services:
context: ./backend
dockerfile: Dockerfile
args:
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-python:3.12-slim}
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-python:3.12-slim-bookworm}
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://mirrors.aliyun.com/pypi/simple}
PIP_EXTRA_INDEX_URL: ${PIP_EXTRA_INDEX_URL:-}
container_name: hxops-kb-worker