Skip to content

Commit 1823742

Browse files
author
divya agarwal
committed
libxml2 patch
1 parent 2600d9f commit 1823742

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

huggingface/pytorch/inference/docker/2.1/py3/sdk2.20.0/Dockerfile.neuronx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,32 @@ RUN apt-get update \
5959
libcap-dev \
6060
gpg-agent \
6161
libexpat1 \
62-
libxml2 \
6362
libgstreamer1.0-0 \
6463
libsoup2.4-1 \
6564
&& rm -rf /var/lib/apt/lists/* \
6665
&& rm -rf /tmp/tmp* \
6766
&& apt-get clean
6867

68+
# Install latest version of libxml2 from source
69+
RUN apt-get update \
70+
&& apt-get install -y --no-install-recommends \
71+
make \
72+
gcc \
73+
automake \
74+
libtool \
75+
pkg-config \
76+
&& wget http://xmlsoft.org/sources/libxml2-latest.tar.gz \
77+
&& tar -xzf libxml2-latest.tar.gz \
78+
&& cd libxml2-* \
79+
&& ./configure --prefix=/usr --without-python \
80+
&& make -j$(nproc) \
81+
&& make install \
82+
&& cd .. \
83+
&& rm -rf libxml2-* \
84+
&& rm -rf /var/lib/apt/lists/* \
85+
&& rm -rf /tmp/tmp* \
86+
&& apt-get clean
87+
6988
RUN echo "deb https://apt.repos.neuron.amazonaws.com focal main" > /etc/apt/sources.list.d/neuron.list
7089
RUN wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add -
7190

0 commit comments

Comments
 (0)