File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ RUN tce-load -wic \
91
91
&& sudo /sbin/ldconfig \
92
92
&& rm -rf /tmp/tce/optional/* \
93
93
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | sudo python2 \
94
- && sudo pip install --upgrade pip==$PYTHON_PIP_VERSION \
94
+ && sudo pip install --no-cache-dir -- upgrade pip==$PYTHON_PIP_VERSION \
95
95
&& sudo find /usr/local \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + \
96
96
&& find /usr/local \( -type d -a -name test -o -name tests \) | sudo xargs rm -rf \
97
97
&& sudo rm -rf /usr/src/python
@@ -100,6 +100,6 @@ RUN tce-load -wic \
100
100
USER root
101
101
102
102
# install "virtualenv", since the vast majority of users of this image will want it
103
- RUN pip install virtualenv
103
+ RUN pip install --no-cache-dir virtualenv
104
104
105
105
CMD ["python2" ]
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
4
4
WORKDIR /usr/src/app
5
5
6
6
ONBUILD COPY requirements.txt /usr/src/app/
7
- ONBUILD RUN pip install -r requirements.txt
7
+ ONBUILD RUN pip install --no-cache-dir - r requirements.txt
8
8
9
9
ONBUILD COPY . /usr/src/app
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ RUN tce-load -wic \
93
93
&& sudo /sbin/ldconfig \
94
94
&& rm -rf /tmp/tce/optional/* \
95
95
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | sudo python3 \
96
- && sudo pip install --upgrade pip==$PYTHON_PIP_VERSION \
96
+ && sudo pip install --no-cache-dir -- upgrade pip==$PYTHON_PIP_VERSION \
97
97
&& sudo find /usr/local \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + \
98
98
&& find /usr/local \( -type d -a -name test -o -name tests \) | sudo xargs rm -rf \
99
99
&& sudo rm -rf /usr/src/python
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
4
4
WORKDIR /usr/src/app
5
5
6
6
ONBUILD COPY requirements.txt /usr/src/app/
7
- ONBUILD RUN pip install -r requirements.txt
7
+ ONBUILD RUN pip install --no-cache-dir - r requirements.txt
8
8
9
9
ONBUILD COPY . /usr/src/app
You can’t perform that action at this time.
0 commit comments