Skip to content

Commit

Permalink
Move pip install into single RUN step to save layer space
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart committed Jun 14, 2016
1 parent 30bf243 commit 6a559f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python2.7/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/task:/var/task/lib \
PYTHONPATH=/var/runtime

RUN rm -rf /var/runtime
RUN rm -rf /var/runtime && \
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python && \
pip install -U pip virtualenv

ADD python2.7.tgz /

# Install Pip & Virtualenv
RUN curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python
RUN pip install -U pip virtualenv

0 comments on commit 6a559f4

Please sign in to comment.