mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-13 06:20:49 +08:00
16 lines
423 B
Docker
16 lines
423 B
Docker
FROM python:3.10.11-slim-buster
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# 设置工作目录
|
|
WORKDIR /app
|
|
|
|
RUN set -eux; \
|
|
pip install --no-cache-dir rapidocr_api -i https://mirrors.aliyun.com/pypi/simple; \
|
|
pip uninstall -y opencv-python; \
|
|
pip install --no-cache-dir opencv-python-headless -i https://mirrors.aliyun.com/pypi/simple
|
|
|
|
EXPOSE 9003
|
|
|
|
CMD ["bash", "-c", "rapidocr_api -ip 0.0.0.0 -p 9003 -workers 2"]
|