From 5d10fa51847c323aa5b674062de78aad0c103f5c Mon Sep 17 00:00:00 2001 From: Prasanth Ramachandran Date: Tue, 11 Jan 2022 12:55:36 -0800 Subject: [PATCH 1/2] Renaming required packages for Ubuntu18 --- runtime-image/resources/apt-packages.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime-image/resources/apt-packages.txt b/runtime-image/resources/apt-packages.txt index 7b88f777..f923a115 100644 --- a/runtime-image/resources/apt-packages.txt +++ b/runtime-image/resources/apt-packages.txt @@ -13,7 +13,7 @@ libcurl4-openssl-dev libffi-dev libjpeg-dev libmysqlclient-dev -libpng12-dev +libpng-dev libpq-dev libssl-dev libxml2-dev @@ -22,7 +22,7 @@ swig zlib1g-dev # Needed by scipy/numpy gfortran -libatlas-dev +libatlas-base-dev libblas-dev libfreetype6-dev liblapack-dev From 5e05679b9f5d45ec4e64a99a8fe69d1054a00fdc Mon Sep 17 00:00:00 2001 From: Prasanth Ramachandran Date: Tue, 11 Jan 2022 13:02:04 -0800 Subject: [PATCH 2/2] Replacing global pip installation with up-to-date location. --- runtime-image/Dockerfile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime-image/Dockerfile.in b/runtime-image/Dockerfile.in index 46387705..f0b9b350 100644 --- a/runtime-image/Dockerfile.in +++ b/runtime-image/Dockerfile.in @@ -9,7 +9,8 @@ ADD scripts /scripts # Install Python, pip, and C dev libraries necessary to compile the most popular # Python libraries. RUN /scripts/install-apt-packages.sh -RUN curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -o "get-pip.py" && python ./get-pip.py && ln -s /usr/local/bin/pip /usr/bin/pip +RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" && python3 ./get-pip.py && ln -s /usr/local/bin/pip /usr/bin/pip + # Setup locale. This prevents Python 3 IO encoding issues. ENV LANG C.UTF-8