Merge pull request #50 from mattrobenolt/pip-caching
Skip pip's default caching behavior
This commit is contained in:
commit
6d962f44cb
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
@ -36,6 +36,6 @@ RUN set -x \
|
||||||
&& rm -rf /usr/src/python
|
&& rm -rf /usr/src/python
|
||||||
|
|
||||||
# install "virtualenv", since the vast majority of users of this image will want it
|
# 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"]
|
CMD ["python2"]
|
||||||
|
|
|
@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
ONBUILD COPY requirements.txt /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
|
ONBUILD COPY . /usr/src/app
|
||||||
|
|
|
@ -47,7 +47,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
@ -56,6 +56,6 @@ RUN set -x \
|
||||||
&& rm -rf /usr/src/python
|
&& rm -rf /usr/src/python
|
||||||
|
|
||||||
# install "virtualenv", since the vast majority of users of this image will want it
|
# 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"]
|
CMD ["python2"]
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
@ -36,6 +36,6 @@ RUN set -x \
|
||||||
&& rm -rf /usr/src/python
|
&& rm -rf /usr/src/python
|
||||||
|
|
||||||
# install "virtualenv", since the vast majority of users of this image will want it
|
# 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"]
|
CMD ["python2"]
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
ONBUILD COPY requirements.txt /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
|
ONBUILD COPY . /usr/src/app
|
||||||
|
|
|
@ -47,7 +47,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
ONBUILD COPY requirements.txt /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
|
ONBUILD COPY . /usr/src/app
|
||||||
|
|
|
@ -47,7 +47,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN set -x \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
|
&& 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 \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -27,7 +27,7 @@ RUN set -x \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
|
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||||
&& find /usr/local \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -4,6 +4,6 @@ RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
ONBUILD COPY requirements.txt /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
|
ONBUILD COPY . /usr/src/app
|
||||||
|
|
|
@ -46,7 +46,7 @@ RUN set -x \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
|
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||||
&& find /usr/local \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
|
@ -27,7 +27,7 @@ RUN set -x \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& ldconfig \
|
&& ldconfig \
|
||||||
&& pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
|
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
|
||||||
&& find /usr/local \
|
&& find /usr/local \
|
||||||
\( -type d -a -name test -o -name tests \) \
|
\( -type d -a -name test -o -name tests \) \
|
||||||
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
|
|
Loading…
Reference in New Issue