Skip to content

Commit

Permalink
update x86 centos7 dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
laiwenzh committed Dec 13, 2024
1 parent b9fd53d commit 72c8a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/docker/dev_x86_centos7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"]

Expand All @@ -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 && \
Expand Down

0 comments on commit 72c8a16

Please sign in to comment.