From 72c8a16ae6d6e1f33a24a04512b2285a7e822988 Mon Sep 17 00:00:00 2001 From: "zhenglaiwen.zlw" Date: Fri, 13 Dec 2024 14:33:08 +0800 Subject: [PATCH] update x86 centos7 dockerfile --- scripts/docker/dev_x86_centos7.Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/docker/dev_x86_centos7.Dockerfile b/scripts/docker/dev_x86_centos7.Dockerfile index 321346c1..433b7ccf 100644 --- a/scripts/docker/dev_x86_centos7.Dockerfile +++ b/scripts/docker/dev_x86_centos7.Dockerfile @@ -21,9 +21,6 @@ RUN yum install devtoolset-7 -y --nogpgcheck RUN echo "source /opt/rh/devtoolset-7/enable" >> /root/.bashrc && source /root/.bashrc ARG PY_VER=3.8 -RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash \ - && yum install git-lfs -y - RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh \ && bash ./cmake-3.27.9-linux-x86_64.sh --skip-license --prefix=/usr @@ -72,7 +69,7 @@ RUN echo -e "[global]\ntrusted-host=mirrors.aliyun.com\nindex-url = http://mirro # engine requirements RUN conda install -y pytorch-cpu -c pytorch -RUN pip3 install modelscope transformers==4.41.0 protobuf==3.18.3 conan==1.60.0 pytest tokenizers scons wheel pandas tabulate +RUN pip3 install modelscope transformers protobuf==3.18.3 conan==1.60.0 pytest scons wheel pandas tabulate SHELL ["/bin/bash", "-c"] @@ -91,6 +88,9 @@ RUN source /root/.bashrc && \ make -j && make install &&\ cd .. && rm -rf v2.47.0.tar.gz git-2.47.0 +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash \ + && yum install git-lfs -y + RUN curl -LO https://github.com/NixOS/patchelf/archive/refs/tags/0.14.5.tar.gz && \ tar -xzf 0.14.5.tar.gz && \ cd patchelf-0.14.5 && \