FROM ubuntu:14.04 MAINTAINER Hans Feldt # TODO: Is there some easy way to get the fastest/closest mirror? #RUN sed -i 's/archive.ubuntu.com/ftp.acc.umu.se/g' /etc/apt/sources.list RUN apt-get update && apt-get install -y \ libffi-dev \ libssl-dev \ python \ python-dev \ python-setuptools && \ easy_install -U setuptools COPY . /tmp/yardstick RUN cd /tmp/yardstick && \ python setup.py install && \ apt-get -y remove \ binutils \ cpp \ gcc \ libffi-dev \ libssl-dev \ python3 \ python-dev && \ apt-get -y autoremove && \ apt-get clean && \ useradd -u 65500 -m yardstick && \ cp -a samples /home/yardstick && \ chown -R yardstick /home/yardstick/samples && \ chgrp -R yardstick /home/yardstick/samples && \ rm -rf /tmp/* && \ rm -rf /var/lib/apt/lists/* USER yardstick CMD bash --login ENV HOME /home/yardstick WORKDIR /home/yardstick