This commit is contained in:
sftang
2022-08-22 13:48:45 +08:00
parent 7917045bed
commit 406f989765

View File

@@ -22,16 +22,20 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
#COPY . $APP_HOME
RUN git clone https://github.com/xingsu1021/pthelper.git ${APP_HOME}
RUN pip install whl/python_Levenshtein-0.12.2-cp38-cp38-linux_x86_64.whl whl/future-0.18.2-py3-none-any.whl
RUN pip install whl/python_Levenshtein-0.12.2-cp38-cp38-linux_x86_64.whl
RUN pip install whl/future-0.18.2-py3-none-any.whl
#将需要的包体全部打包成直接安装的包whl
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
RUN pip install --no-cache-dir whl/paddlepaddle-2.3.2-cp38-cp38-linux_x86_64.whl -i https://mirror.baidu.com/pypi/simple
#RUN pip install --no-cache-dir whl/paddlepaddle-2.3.2-cp38-cp38-linux_x86_64.whl -i https://mirror.baidu.com/pypi/simple
RUN pip install --no-cache-dir https://paddle-wheel.bj.bcebos.com/2.3.2/linux/linux-cpu-mkl-noavx/paddlepaddle-2.3.2-cp38-cp38-linux_x86_64.whl -i https://mirror.baidu.com/pypi/simple
#容器报错ImportError: libGL.so.1: cannot open shared object file: No such file or dir
RUN pip uninstall opencv-python -y
RUN pip install --no-cache-dir opencv-contrib-python==4.4.0.46 opencv-python-headless==4.4.0.46 -i https://pypi.mirrors.ustc.edu.cn/simple/
RUN pip install --no-cache-dir opencv-contrib-python==4.4.0.46 -i https://pypi.mirrors.ustc.edu.cn/simple/
RUN pip install --no-cache-dir opencv-python-headless==4.4.0.46 -i https://pypi.mirrors.ustc.edu.cn/simple/
COPY start.sh /usr/local/bin/start.sh