remove software-properties-common from Dockerfile (#11203)

This commit is contained in:
Shaojun Liu 2024-06-04 17:37:42 +08:00 committed by GitHub
parent 1dde204775
commit 744042d1b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 12 deletions

View file

@ -20,7 +20,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] h
RUN mkdir /ipex_llm/data && mkdir /ipex_llm/model && \ RUN mkdir /ipex_llm/data && mkdir /ipex_llm/model && \
# Install python 3.11.1 # Install python 3.11.1
apt-get update && apt-get install -y curl wget gpg gpg-agent software-properties-common git gcc g++ make libunwind8-dev zlib1g-dev libssl-dev libffi-dev && \ apt-get update && apt-get install -y curl wget gpg gpg-agent git gcc g++ make libunwind8-dev zlib1g-dev libssl-dev libffi-dev && \
mkdir -p /opt/python && \ mkdir -p /opt/python && \
cd /opt/python && \ cd /opt/python && \
wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz && \ wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz && \

View file

@ -21,7 +21,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] h
RUN mkdir -p /ipex_llm/data && mkdir -p /ipex_llm/model && \ RUN mkdir -p /ipex_llm/data && mkdir -p /ipex_llm/model && \
# Install python 3.11.1 # Install python 3.11.1
apt-get update && \ apt-get update && \
apt-get install -y curl wget gpg gpg-agent software-properties-common git gcc g++ make libunwind8-dev libbz2-dev zlib1g-dev libssl-dev libffi-dev && \ apt-get install -y curl wget gpg gpg-agent git gcc g++ make libunwind8-dev libbz2-dev zlib1g-dev libssl-dev libffi-dev && \
mkdir -p /opt/python && \ mkdir -p /opt/python && \
cd /opt/python && \ cd /opt/python && \
wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz && \ wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz && \

View file

@ -22,7 +22,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] h
RUN mkdir -p /ipex_llm/data && mkdir -p /ipex_llm/model && \ RUN mkdir -p /ipex_llm/data && mkdir -p /ipex_llm/model && \
# Install python 3.11.1 # Install python 3.11.1
apt-get update && apt-get install -y openssh-server openssh-client libcap2-bin gnupg2 ca-certificates \ apt-get update && apt-get install -y openssh-server openssh-client libcap2-bin gnupg2 ca-certificates \
curl wget gpg gpg-agent software-properties-common git \ curl wget gpg gpg-agent git \
gcc g++ make libunwind8-dev zlib1g-dev libssl-dev libffi-dev && \ gcc g++ make libunwind8-dev zlib1g-dev libssl-dev libffi-dev && \
mkdir -p /opt/python && \ mkdir -p /opt/python && \
cd /opt/python && \ cd /opt/python && \

View file

@ -14,13 +14,12 @@ RUN curl -fsSL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-P
# update dependencies # update dependencies
apt-get update && \ apt-get update && \
# install basic dependencies # install basic dependencies
apt-get install -y curl wget git gnupg gpg-agent software-properties-common libunwind8-dev vim less && \ apt-get install -y curl wget git gnupg gpg-agent libunwind8-dev vim less && \
# install Intel GPU driver # install Intel GPU driver
apt-get install -y intel-opencl-icd intel-level-zero-gpu level-zero level-zero-dev --allow-downgrades && \ apt-get install -y intel-opencl-icd intel-level-zero-gpu level-zero level-zero-dev --allow-downgrades && \
# install python 3.11 # install python 3.11
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
env DEBIAN_FRONTEND=noninteractive apt-get update && \ env DEBIAN_FRONTEND=noninteractive apt-get update && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get install -y python3.11 python3-pip python3.11-dev python3-wheel python3.11-distutils && \ apt-get install -y python3.11 python3-pip python3.11-dev python3-wheel python3.11-distutils && \
# avoid axolotl lib conflict # avoid axolotl lib conflict
apt-get remove -y python3-blinker && apt autoremove -y && \ apt-get remove -y python3-blinker && apt autoremove -y && \

View file

@ -21,8 +21,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
# Install PYTHON 3.11 and IPEX-LLM[xpu] # Install PYTHON 3.11 and IPEX-LLM[xpu]
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
env DEBIAN_FRONTEND=noninteractive apt-get update && \ env DEBIAN_FRONTEND=noninteractive apt-get update && \
apt install software-properties-common libunwind8-dev vim less -y && \ apt install libunwind8-dev vim less -y && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get install -y python3.11 git curl wget && \ apt-get install -y python3.11 git curl wget && \
rm /usr/bin/python3 && \ rm /usr/bin/python3 && \
ln -s /usr/bin/python3.11 /usr/bin/python3 && \ ln -s /usr/bin/python3.11 /usr/bin/python3 && \

View file

@ -12,12 +12,10 @@ COPY ./start-notebook.sh /llm/start-notebook.sh
# Update the software sources # Update the software sources
RUN env DEBIAN_FRONTEND=noninteractive apt-get update && \ RUN env DEBIAN_FRONTEND=noninteractive apt-get update && \
# Install essential packages # Install essential packages
apt install software-properties-common libunwind8-dev vim less -y && \ apt install libunwind8-dev vim less -y && \
# Install git, curl, and wget # Install git, curl, and wget
apt-get install -y git curl wget && \ apt-get install -y git curl wget && \
# Install Python 3.11 # Install Python 3.11
# Add Python 3.11 PPA repository
add-apt-repository ppa:deadsnakes/ppa -y && \
# Install Python 3.11 # Install Python 3.11
apt-get install -y python3.11 && \ apt-get install -y python3.11 && \
# Remove the original /usr/bin/python3 symbolic link # Remove the original /usr/bin/python3 symbolic link

View file

@ -26,8 +26,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
# Install PYTHON 3.11 and IPEX-LLM[xpu] # Install PYTHON 3.11 and IPEX-LLM[xpu]
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
env DEBIAN_FRONTEND=noninteractive apt-get update && \ env DEBIAN_FRONTEND=noninteractive apt-get update && \
apt install software-properties-common libunwind8-dev vim less -y && \ apt install libunwind8-dev vim less -y && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get install -y python3.11 git curl wget && \ apt-get install -y python3.11 git curl wget && \
rm /usr/bin/python3 && \ rm /usr/bin/python3 && \
ln -s /usr/bin/python3.11 /usr/bin/python3 && \ ln -s /usr/bin/python3.11 /usr/bin/python3 && \