dockerfile 391 B

12345678
  1. FROM python:3.10.11-slim-buster
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. WORKDIR /app
  4. RUN pip install --no-cache-dir onnxruntime rapidocr_api -i https://mirrors.aliyun.com/pypi/simple
  5. RUN pip uninstall -y opencv-python && \
  6. pip install --no-cache-dir opencv-python-headless -i https://mirrors.aliyun.com/pypi/simple
  7. EXPOSE 9005
  8. CMD ["bash", "-c", "rapidocr_api -ip 0.0.0.0 -p 9005 -workers 2"]