Skip to content

Commit

Permalink
fix(neuronx): apparmor and gevent vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo committed Oct 29, 2024
1 parent c949bb8 commit 0c8dc5a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LABEL dlc_major_version="1"
ARG OPTIMUM_NEURON_VERSION=0.0.25
ARG TRANSFORMERS_VERSION
ARG DATASETS_VERSION
ARG GEVENT_VERSION=24.2.1
ARG PYTHON=python3

# install Hugging Face libraries and its dependencies
Expand All @@ -21,7 +22,8 @@ RUN pip install --no-cache-dir \
transformers[sklearn,sentencepiece,audio,vision]==${TRANSFORMERS_VERSION} \
datasets==${DATASETS_VERSION} \
optimum-neuron==${OPTIMUM_NEURON_VERSION} \
peft
peft \
gevent==${GEVENT_VERSION}

# Pin numpy to version required by neuronx-cc
# Update Pillow and urllib version to fix high and critical vulnerabilities
Expand All @@ -33,12 +35,13 @@ RUN pip install -U \
"urllib3>=1.26.17,<1.27"

RUN apt-get update \
&& apt install -y git-lfs \
&& apt install -y --no-install-recommends \
git-lfs \
libgssapi-krb5-2 \
libexpat1 \
expat \
apparmor \
libarchive13 \
&& apt-get upgrade -y apparmor \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 0c8dc5a

Please sign in to comment.