chandra2 / Dockerfile
Hyungseoky's picture
Upload 8 files
9773110 verified
Raw
History Blame Contribute Delete
874 Bytes
# Dockerfile - Chandra OCR 2 FastAPI μ„œλΉ„μŠ€
FROM python:3.12-slim
# μ‹œμŠ€ν…œ νŒ¨ν‚€μ§€ (PyMuPDF, Pillow, ν•œκΈ€ 폰트 λ“±)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
poppler-utils \
libgl1 \
libglib2.0-0 \
curl \
docker.io \
fonts-nanum \
&& rm -rf /var/lib/apt/lists/*
# Python νŒ¨ν‚€μ§€
RUN pip install --no-cache-dir \
fastapi \
uvicorn[standard] \
aiohttp \
aiofiles \
Pillow \
PyMuPDF \
numpy \
python-multipart
WORKDIR /app
# μ†ŒμŠ€ μ½”λ“œ 볡사
COPY main.py .
COPY config_chandra.py .
COPY tool_chandra.py .
COPY utils_chandra.py .
COPY inference_chandra.py .
# μ—…λ‘œλ“œ 디렉토리 생성
RUN mkdir -p /app/uploads
EXPOSE 10001
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "10001", "--workers", "4", "--log-level", "info"]