gunicorn启动,不要过多的超时和复杂逻辑,启动按最简单直接的方式加载,把耗资源,耗时间的功能单独放在对接接口定义触发
或者打镜像的时候提前触发,把该生成的文件提前生成好
RUN pip config set global.index-url https://mirror.baidu.com/pypi/simple \
&& pip install --upgrade setuptools \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& python3 xx.py \
&& cd model \
&& python3 xx_match.py \
&& cd ..