Cleanup dockerfile a little

- Don't do pip install -U pip - this makes the image build more
  non-deterministic than necessary. 17.04 has the latest version of
  pip, and we can stick to newest ubuntu quite aggressivley to keep
  up in the cases it matters.
- Set --no-cache-dir in pip install, so we don't actually build
  wheels - they are useless in our situation. This also lets us not
  have to install wheels
- Make note about
pull/17/head
yuvipanda 2017-05-27 18:06:56 -07:00
rodzic b1f12d914e
commit e81703aaaf
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -9,12 +9,11 @@ RUN apt-get update && \
git && \
apt-get clean && apt-get purge
# FIXME: Remove this if pip install with setup.py can do it instead?
COPY install-s2i.bash /usr/local/bin/install-s2i.bash
RUN /usr/local/bin/install-s2i.bash
RUN pip3 install --upgrade pip wheel
RUN mkdir /tmp/src
ADD . /tmp/src
RUN pip3 install /tmp/src
RUN pip3 install --no-cache-dir /tmp/src