Dockerfile 550 B

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