# FROM python:3.10.0a6-buster FROM paddlecloud/paddleocr:2.5-cpu-latest ARG work_dir=/app ENV FLASK_APP_PATH=${work_dir}/server.py ENV FLASK_PORT=5000 SHELL ["/bin/bash", "--login", "-c"] WORKDIR ${work_dir} COPY ./ ${work_dir} COPY ./entrypoint.sh / RUN chmod +x /entrypoint.sh RUN pip3 install --upgrade pip # RUN python -m pip install -r requirements.txt -U -i https://mirror.baidu.com/pypi/simple ## Recommendation for those in China RUN pip3 install -r requirements.txt -U -i https://mirror.baidu.com/pypi/simple ENTRYPOINT [ "/entrypoint.sh" ]