Skip to content

Commit 2743af5

Browse files
committed
move some packages to ec2 and sm stages, remove awscli and boto3 since base includes them
1 parent f64a296 commit 2743af5

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

pytorch/training/docker/2.8/py3/cu129/Dockerfile.gpu

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,7 @@ RUN apt-get update \
7676
libgl1-mesa-glx \
7777
build-essential \
7878
ca-certificates \
79-
curl \
80-
emacs \
81-
git \
82-
jq \
8379
zlib1g-dev \
84-
unzip \
85-
vim \
86-
wget \
8780
openssl \
8881
python3-dev \
8982
pkg-config \
@@ -110,7 +103,6 @@ RUN pip install --no-cache-dir \
110103
typing \
111104
charset-normalizer \
112105
packaging \
113-
boto3 \
114106
PyYAML \
115107
numpy \
116108
scipy \
@@ -126,7 +118,6 @@ RUN pip install --no-cache-dir \
126118
"requests>=2.32.0" \
127119
"setuptools>=70.0.0" \
128120
"urllib3>=2.5.0" \
129-
"awscli" \
130121
ninja \
131122
opencv-python==4.11.0.86 \
132123
mpi4py \
@@ -207,6 +198,18 @@ ARG PYTHON
207198

208199
WORKDIR /
209200

201+
RUN apt-get update \
202+
&& apt-get install -y --no-install-recommends \
203+
curl \
204+
wget \
205+
git \
206+
jq \
207+
emacs \
208+
vim \
209+
unzip \
210+
&& rm -rf /var/lib/apt/lists/* \
211+
&& apt-get clean
212+
210213
COPY dockerd_entrypoint.sh /usr/local/bin/dockerd_entrypoint.sh
211214
RUN chmod +x /usr/local/bin/dockerd_entrypoint.sh
212215

@@ -243,6 +246,18 @@ ARG PYTHON
243246

244247
WORKDIR /
245248

249+
RUN apt-get update \
250+
&& apt-get install -y --no-install-recommends \
251+
curl \
252+
wget \
253+
git \
254+
jq \
255+
emacs \
256+
vim \
257+
unzip \
258+
&& rm -rf /var/lib/apt/lists/* \
259+
&& apt-get clean
260+
246261
# Install SM packages
247262
RUN pip install --no-cache-dir -U \
248263
smclarify \

0 commit comments

Comments
 (0)