25 lines
650 B
Docker
25 lines
650 B
Docker
FROM paddlepaddle/paddle:3.2.0-gpu-cuda11.8-cudnn8.9
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
poppler-utils \
|
|
tesseract-ocr \
|
|
tesseract-ocr-kor \
|
|
libgl1 \
|
|
curl \
|
|
tree \
|
|
git \
|
|
build-essential && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt && \
|
|
pip install --no-cache-dir paddleocr[all]
|
|
|
|
WORKDIR /workspace
|
|
COPY . .
|
|
|
|
CMD ["uvicorn", "api:app", "--workers", "2", "--host", "0.0.0.0", "--port", "8880"] |