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 python-virtualenv RUN apt-get install sudo # 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 # create a virtual env RUN virtualenv py27 COPY build.sh /home/kofa/build.sh CMD /bin/bash -i