19
19
# See also in https://hub.docker.com/_/ubuntu
20
20
FROM ubuntu:focal-20221019
21
21
22
- ENV FULL_REFRESH_DATE 20231117
22
+ ENV FULL_REFRESH_DATE 20240117
23
23
24
24
ENV DEBIAN_FRONTEND noninteractive
25
25
ENV DEBCONF_NONINTERACTIVE_SEEN true
@@ -104,6 +104,7 @@ RUN python3.9 -m pip install $BASIC_PIP_PKGS unittest-xml-reporting $CONNECT_PIP
104
104
# Add torch as a testing dependency for TorchDistributor and DeepspeedTorchDistributor
105
105
RUN python3.9 -m pip install 'torch<=2.0.1' torchvision --index-url https://download.pytorch.org/whl/cpu
106
106
RUN python3.9 -m pip install deepspeed torcheval
107
+ RUN python3.9 -m pip cache purge
107
108
108
109
# Install Python 3.10 at the last stage to avoid breaking Python 3.9
109
110
RUN add-apt-repository ppa:deadsnakes/ppa
@@ -114,6 +115,7 @@ RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
114
115
RUN python3.10 -m pip install $BASIC_PIP_PKGS unittest-xml-reporting $CONNECT_PIP_PKGS
115
116
RUN python3.10 -m pip install 'torch<=2.0.1' torchvision --index-url https://download.pytorch.org/whl/cpu
116
117
RUN python3.10 -m pip install deepspeed torcheval
118
+ RUN python3.10 -m pip cache purge
117
119
118
120
# Install Python 3.11 at the last stage to avoid breaking the existing Python installations
119
121
RUN add-apt-repository ppa:deadsnakes/ppa
@@ -124,6 +126,7 @@ RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
124
126
RUN python3.11 -m pip install $BASIC_PIP_PKGS unittest-xml-reporting $CONNECT_PIP_PKGS
125
127
RUN python3.11 -m pip install 'torch<=2.0.1' torchvision --index-url https://download.pytorch.org/whl/cpu
126
128
RUN python3.11 -m pip install deepspeed torcheval
129
+ RUN python3.11 -m pip cache purge
127
130
128
131
# Install Python 3.12 at the last stage to avoid breaking the existing Python installations
129
132
RUN add-apt-repository ppa:deadsnakes/ppa
@@ -137,3 +140,6 @@ RUN python3.12 -m pip install $BASIC_PIP_PKGS $CONNECT_PIP_PKGS lxml
137
140
RUN python3.12 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
138
141
RUN python3.12 -m pip install torchvision --index-url https://download.pytorch.org/whl/cpu
139
142
RUN python3.12 -m pip install torcheval
143
+ RUN python3.12 -m pip cache purge
144
+
145
+ RUN df -h
0 commit comments