chandra + kie (vLLM, weights mount từ CHANDRA_MODEL_DIR/KIE_MODEL_DIR) và api + worker (image build từ Dockerfile, network_mode host, đọc .env) thay cho hai tmux run-api.sh/run-worker.sh và docker run chandra riêng. Worker mount native-hdfs của gói portable, đợi hai model healthy mới nhận trang. GPU chọn bằng GPU_DEVICE (driver nvidia) thay cho CDI GPU_UUID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
485 B
Docker
16 lines
485 B
Docker
FROM python:3.11-slim
|
|
|
|
# kinit cho client HDFS native (Kerberos) mount từ gói portable vào /opt/native-hdfs.
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends krb5-user \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY requirements-runtime.txt .
|
|
RUN pip install --no-cache-dir -r requirements-runtime.txt
|
|
COPY pyproject.toml .
|
|
COPY idp_service idp_service
|
|
RUN pip install --no-cache-dir --no-deps .
|
|
|
|
ENV PYTHONUNBUFFERED=1
|