Dockerfile 974 B

123456789101112131415161718192021222324252627282930313233
  1. FROM ubuntu:trusty
  2. # http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
  3. RUN export uid=1000 gid=1000 && \
  4. mkdir -p /home/developer && \
  5. echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
  6. echo "developer:x:${uid}:" >> /etc/group && \
  7. echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
  8. chmod 0440 /etc/sudoers.d/developer && \
  9. chown ${uid}:${gid} -R /home/developer
  10. RUN \
  11. apt-get update -qq && \
  12. apt-get upgrade -qq -y && \
  13. apt-get install -qq -y \
  14. aptitude \
  15. git \
  16. python \
  17. python-setuptools
  18. RUN \
  19. easy_install -q pip && \
  20. pip install -q -U pip setuptools
  21. RUN apt-get install -qq -y python-qt4 pyqt4-dev-tools
  22. RUN apt-get install -qq -y python-matplotlib
  23. RUN apt-get install -qq -y python-scipy
  24. RUN apt-get install -qq -y python-skimage
  25. RUN pip install -v git+https://github.com/wkentaro/labelme.git
  26. USER developer
  27. ENV HOME /home/developer