Dockerfile 641 B

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