FROM ubuntu:14.04.3 RUN apt-get update && apt-get install -y RUN apt-get install -y python2.7-dev libxml2-dev libxslt1-dev \ zlib1g-dev python-virtualenv # see https://urllib3.readthedocs.org/en/latest/security.html#openssl-pyopenssl RUN apt-get install -y libssl-dev libffi-dev RUN apt-get install -y sudo wget git # add user `kofa` RUN useradd -ms /bin/bash kofa # set password of user `kofa` and add to group 'sudo' RUN echo kofa:kofa | chpasswd && adduser kofa sudo USER kofa WORKDIR /home/kofa ENV HOME /home/kofa # get sources RUN wget https://pypi.python.org/packages/source/w/waeup.kofa/waeup.kofa-1.3.3.tar.gz && tar -xzf waeup.kofa-1.3.3.tar.gz RUN mv waeup.kofa-1.3.3 waeup.kofa # create a virtual env RUN virtualenv py27 COPY build.sh /home/kofa/build.sh RUN /home/kofa/build.sh CMD /bin/bash -i