1234567891011121314151617 |
- 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
- WORKDIR ${work_dir}
- COPY ./ ${work_dir}
- COPY ./entrypoint.sh /
- RUN pip3 install --upgrade pip
- RUN pip3 install -r requirements.txt -U -i https://mirror.baidu.com/pypi/simple
- RUN python server.py
|