# FROM python:3.10.0a6-buster # FROM paddlecloud/paddleocr:2.5-cpu-latest FROM paddlepaddle/paddle:2.5.0-gpu-cuda12.0-cudnn8.9-trt8.6 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" ] CMD python server.py