docker打包python项目为镜像的时候,总是会提示 Could not find a version that satisfies the requirement
下面是打包的命令
FROM python:3.7
WORKDIR ./core
ADD . .
RUN pip install -r ./cigarette_pack_counting_model/requirements.txt -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
CMD ["python", "./cigarette_pack_counting_model/app.py"]