690525:1444 ADR-028-228-migration-OCR #02
CI / CD Pipeline / build (push) Successful in 4m32s
CI / CD Pipeline / deploy (push) Successful in 1m42s

This commit is contained in:
2026-05-25 14:44:08 +07:00
parent 256a31b38c
commit c9e578a33e
2 changed files with 13 additions and 7 deletions
@@ -25,10 +25,6 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY app.py .
# Download PaddleOCR models ล่วงหน้าระหว่าง build (ลด cold-start time)
# โมเดลภาษาไทย (th) + อังกฤษ (en) ตาม ADR-023A
RUN python -c "from paddleocr import PaddleOCR; PaddleOCR(use_angle_cls=True, lang='en', use_gpu=False)"
EXPOSE 8765
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \