FROM ubuntu:17.04 RUN apt-get update && \ apt-get install --yes --no-install-recommends \ curl \ python3 \ python3-pip \ python3-setuptools \ 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 mkdir /tmp/src ADD . /tmp/src RUN pip3 install --no-cache-dir /tmp/src