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

+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