Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0965d52

Browse files
author
Douglas Greiman
authored
Update pip, setuptools, virtualenv when we build the base runtime image. (GoogleCloudPlatform#161)
1 parent 29fe28b commit 0965d52

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

runtime-image/Dockerfile.in

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ ENV LANG C.UTF-8
1616
# logging collection.
1717
ENV PYTHONUNBUFFERED 1
1818

19-
# Upgrade pip (debian package version tends to run a few version behind) and
20-
# install virtualenv system-wide.
21-
RUN pip install --upgrade pip virtualenv
22-
2319
# Install the Google-built interpreters
2420
ADD interpreters.tar.gz /
2521

2622
# Add Google-built interpreters to the path
27-
ENV PATH /opt/python3.5/bin:/opt/python3.6/bin:$PATH
23+
ENV PATH /opt/python3.6/bin:/opt/python3.5/bin:$PATH
24+
25+
# Upgrade pip (debian package version tends to run a few version behind) and
26+
# install virtualenv system-wide.
27+
RUN /usr/bin/pip install --upgrade -r /resources/requirements.txt && \
28+
/usr/bin/pip3 install --upgrade -r /resources/requirements.txt && \
29+
/opt/python3.5/bin/pip3.5 install --upgrade -r /resources/requirements.txt && \
30+
/opt/python3.6/bin/pip3.6 install --upgrade -r /resources/requirements.txt
2831

2932
# Setup the app working directory
3033
RUN ln -s /home/vmagent/app /app

runtime-image/resources/apt-packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ wget
77
python-pip
88
python2.7
99
python2.7-dev
10+
python3-pip
1011
python3.4
1112
python3.4-dev
1213
# Dependenies for third-party Python packages
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pip==9.0.1
2+
setuptools==36.6.0
3+
virtualenv==15.1.0

0 commit comments

Comments
 (0)