File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
synthtool/gcp/templates/python_library/.kokoro/docker/docs Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from ubuntu:20 .04
15+ from ubuntu:22 .04
1616
1717ENV DEBIAN_FRONTEND noninteractive
1818
@@ -60,8 +60,24 @@ RUN apt-get update \
6060 && rm -rf /var/lib/apt/lists/* \
6161 && rm -f /var/cache/apt/archives/*.deb
6262
63+ # ##################### Install python 3.8.11
64+
65+ # Download python 3.8.11
66+ RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
67+
68+ # Extract files
69+ RUN tar -xvf Python-3.8.11.tgz
70+
71+ # Install python 3.8.11
72+ RUN ./Python-3.8.11/configure --enable-optimizations
73+ RUN make altinstall
74+
75+ # ##################### Install pip
6376RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
64- && python3.8 /tmp/get-pip.py \
77+ && python3 /tmp/get-pip.py \
6578 && rm /tmp/get-pip.py
6679
80+ # Test pip
81+ RUN python3 -m pip
82+
6783CMD ["python3.8" ]
You can’t perform that action at this time.
0 commit comments