Skip to content

Commit c36c672

Browse files
authored
Fix vulnerabilities (#4144)
1 parent 88026c8 commit c36c672

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

  • assets/training/general/environments
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2004-cu121-py310-torch22x:{{latest-image-tag:biweekly\.\d{6}\.\d{1}.*}}
1+
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2204-cu121-py310-torch251:{{latest-image-tag:biweekly\.\d{6}\.\d{1}.*}}
22

33
# Install pip dependencies
44
COPY requirements.txt .
55
RUN pip install -r requirements.txt --no-cache-dir
66

77
# Inference requirements
88
COPY --from=mcr.microsoft.com/azureml/o16n-base/python-assets:20230419.v1 /artifacts /var/
9-
RUN /var/requirements/install_system_requirements.sh && \
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends \
11+
libcurl4 \
12+
liblttng-ust1 \
13+
libunwind8 \
14+
libxml++2.6-2v5 \
15+
nginx-light \
16+
psmisc \
17+
rsyslog \
18+
runit \
19+
unzip && \
20+
apt-get clean && rm -rf /var/lib/apt/lists/* && \
1021
cp /var/configuration/rsyslog.conf /etc/rsyslog.conf && \
1122
cp /var/configuration/nginx.conf /etc/nginx/sites-available/app && \
1223
ln -sf /etc/nginx/sites-available/app /etc/nginx/sites-enabled/app && \
@@ -17,4 +28,4 @@ EXPOSE 5001 8883 8888
1728

1829
# support Deepspeed launcher requirement of passwordless ssh login
1930
RUN apt-get update
20-
RUN apt-get install -y openssh-server openssh-client
31+
RUN apt-get install -y openssh-server openssh-client

assets/training/general/environments/tensorflow-2.16-cuda12/context/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ RUN apt-get update && \
4949
libctf-nobfd0 \
5050
binutils-multiarch \
5151
libk5crypto3 \
52-
libcap2 && \
52+
libcap2 \
53+
# Perl vulnerability fixes
54+
perl-modules-5.34 \
55+
perl \
56+
perl-base \
57+
libperl5.34 && \
5358
apt-get clean -y && \
5459
rm -rf /var/lib/apt/lists/*
5560

0 commit comments

Comments
 (0)