File size: 489 Bytes
6f423bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Small CPU-only image: Python + OpenCV (headless) + Tesseract. No GPU, no ML models.
FROM python:3.12-slim

RUN apt-get update \
 && apt-get install -y --no-install-recommends tesseract-ocr tesseract-ocr-eng \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY pyproject.toml README.md ./
COPY plotscribe ./plotscribe
RUN pip install --no-cache-dir ".[web]"

ENV OMP_NUM_THREADS=1
EXPOSE 8000
CMD ["uvicorn", "plotscribe.web:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]