@@ -34,8 +34,8 @@ ARG TORCHTEXT_VERSION=0.12.0
34
34
# Pillow is also installed (so it won't override it with a future pip install), a Pillow stub is included
35
35
# PILLOW_PSEUDOVERSION is the Pillow version that pip thinks is installed
36
36
# PILLOW_SIMD_VERSION is the actual version of pillow-simd that is installed.
37
- ARG PILLOW_PSEUDOVERSION=7.0 .0
38
- ARG PILLOW_SIMD_VERSION=7 .0.0.post3
37
+ ARG PILLOW_PSEUDOVERSION=9.3 .0
38
+ ARG PILLOW_SIMD_VERSION=9 .0.0.post1
39
39
40
40
# Version of the Mellanox Drivers to install (for InfiniBand support)
41
41
# Leave blank for no Mellanox Drivers
@@ -45,6 +45,12 @@ ARG MOFED_VERSION=5.5-1.0.3.2
45
45
# Leave blank for no EFA Drivers
46
46
ARG AWS_OFI_NCCL_VERSION=v1.5.0-aws
47
47
48
+ # Upgrade certifi to resolve CVE-2022-23491
49
+ ARG CERTIFI_VERSION='>=2022.12.7'
50
+
51
+ # Upgrade urllib to resolve CVE-2021-33503
52
+ ARG URLLIB3_VERSION='>=1.26.5,<2'
53
+
48
54
# #######################
49
55
# Vision Image Arguments
50
56
# #######################
@@ -134,7 +140,6 @@ RUN apt-get update && \
134
140
automake \
135
141
libtool \
136
142
# Development tools
137
- vim \
138
143
tmux \
139
144
htop && \
140
145
apt-get autoclean && \
@@ -155,7 +160,7 @@ RUN add-apt-repository ppa:git-core/ppa && \
155
160
# Install NodeJS (for Pyright)
156
161
# #############################
157
162
RUN \
158
- curl -fsSL https://deb.nodesource.com/setup_17 .x | bash - && \
163
+ curl -fsSL https://deb.nodesource.com/setup_18 .x | bash - && \
159
164
apt-get install -y --no-install-recommends nodejs && \
160
165
apt-get autoclean && \
161
166
apt-get clean && \
@@ -323,6 +328,22 @@ RUN useradd -rm -d /home/mosaicml -s /bin/bash -u 1000 -U -s /bin/bash mosaicml
323
328
usermod -a -G sudo mosaicml && \
324
329
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
325
330
331
+ # ########################
332
+ # Upgrade apt packages
333
+ # ########################
334
+ RUN apt-get update && \
335
+ apt-get upgrade -y && \
336
+ apt-get autoclean && \
337
+ apt-get clean && \
338
+ rm -rf /var/lib/apt/lists/*
339
+
340
+ # ########################
341
+ # Upgrade pip packages
342
+ # ########################
343
+ RUN pip install --no-cache-dir --upgrade urllib3${URLLIB3_VERSION} \
344
+ certifi${CERTIFI_VERSION}
345
+
346
+
326
347
# #####################
327
348
# PyTorch Vision Image
328
349
# #####################
0 commit comments