mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-11 21:40:52 +08:00
8 lines
391 B
Docker
8 lines
391 B
Docker
FROM python:3.10.11-slim-buster
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
WORKDIR /app
|
|
RUN pip install --no-cache-dir onnxruntime rapidocr_api -i https://mirrors.aliyun.com/pypi/simple
|
|
RUN pip uninstall -y opencv-python && \
|
|
pip install --no-cache-dir opencv-python-headless -i https://mirrors.aliyun.com/pypi/simple
|
|
EXPOSE 9005
|
|
CMD ["bash", "-c", "rapidocr_api -ip 0.0.0.0 -p 9005 -workers 2"] |