Merge pull request #50 from mattrobenolt/pip-caching

Skip pip's default caching behavior
This commit is contained in:
yosifkit 2015-06-11 19:05:30 -07:00
commit 6d962f44cb
16 changed files with 19 additions and 19 deletions

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@ -36,6 +36,6 @@ RUN set -x \
&& rm -rf /usr/src/python
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip install virtualenv
RUN pip install --no-cache-dir virtualenv
CMD ["python2"]

View File

@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install -r requirements.txt
ONBUILD RUN pip install --no-cache-dir -r requirements.txt
ONBUILD COPY . /usr/src/app

View File

@ -47,7 +47,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@ -56,6 +56,6 @@ RUN set -x \
&& rm -rf /usr/src/python
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip install virtualenv
RUN pip install --no-cache-dir virtualenv
CMD ["python2"]

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@ -36,6 +36,6 @@ RUN set -x \
&& rm -rf /usr/src/python
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip install virtualenv
RUN pip install --no-cache-dir virtualenv
CMD ["python2"]

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install -r requirements.txt
ONBUILD RUN pip install --no-cache-dir -r requirements.txt
ONBUILD COPY . /usr/src/app

View File

@ -47,7 +47,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install -r requirements.txt
ONBUILD RUN pip install --no-cache-dir -r requirements.txt
ONBUILD COPY . /usr/src/app

View File

@ -47,7 +47,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -28,7 +28,7 @@ RUN set -x \
&& make install \
&& ldconfig \
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
&& pip install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -27,7 +27,7 @@ RUN set -x \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install -r requirements.txt
ONBUILD RUN pip install --no-cache-dir -r requirements.txt
ONBUILD COPY . /usr/src/app

View File

@ -46,7 +46,7 @@ RUN set -x \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

View File

@ -27,7 +27,7 @@ RUN set -x \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \