File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
huggingface/pytorch/inference/docker/2.1/py3/sdk2.20.0 Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff 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+
6988RUN echo "deb https://apt.repos.neuron.amazonaws.com focal main" > /etc/apt/sources.list.d/neuron.list
7089RUN wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add -
7190
You can’t perform that action at this time.
0 commit comments