Skip to content

Commit 9d333f4

Browse files
committed
13.0 cve fixes
1 parent e089b84 commit 9d333f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/huggingface_server.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ RUN git clone https://github.com/bitsandbytes-foundation/bitsandbytes.git && cd
101101
RUN pip install "setuptools>=78.1.1"
102102
RUN pip install "urllib3>=2.5.0" "requests>=2.32.4" "starlette>=0.49.1" "aiohttp>=3.12.14"
103103
RUN pip install "h11>=0.16.0" "pillow>=11.3.0"
104+
RUN pip install --upgrade "cbor2" "filelock" "urllib3"
104105
RUN pip uninstall -y ray && pip install --upgrade pip
105106

106107
# Use Bash with `-o pipefail` so we can leverage Bash-specific features (like `[[ … ]]` for glob tests)
@@ -156,6 +157,9 @@ RUN dnf update -y \
156157
&& dnf install -y --allowerasing sqlite-libs expat shadow-utils \
157158
&& dnf clean all && rm -rf /var/cache/dnf
158159

160+
# CVE fixes
161+
RUN dnf update -y python3.x86_64 python3-libs.x86_64 binutils.x86_64 binutils-gold.x86_64 tar \
162+
&& dnf clean all && rm -rf /var/cache/dnf
159163

160164
ARG VENV_PATH
161165
# Activate virtual env by setting VIRTUAL_ENV
@@ -210,10 +214,6 @@ RUN sed -i 's/DEST=\/etc\/pki\/ca-trust\/extracted/DEST=\/etc\/ssl/g' /usr/bin/u
210214
chown $STRIVE_UID -R /usr/local/share/ca-certificates && chmod a+rwx -R /usr/local/share/ca-certificates && \
211215
ln -s /etc/ssl/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
212216

213-
RUN /kserve-workspace/prod_venv/bin/pip --version && \
214-
/kserve-workspace/prod_venv/bin/pip install --upgrade pip && \
215-
/kserve-workspace/prod_venv/bin/pip --version
216-
217217
USER 1000
218218
ENV PYTHONPATH=${WORKSPACE_DIR}/huggingfaceserver
219219

0 commit comments

Comments
 (0)