Advertisement
Guest User

docker-not-caching

a guest
Aug 27th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. FROM totem/python-base:2.7-trusty
  2.  
  3. ENV DEBIAN_FRONTEND noninteractive
  4.  
  5. ADD requirements.txt /opt/requirements.txt
  6. RUN pip install -r /opt/requirements.txt
  7.  
  8. ##SSH Server (To troubleshoot issues with image factory)
  9. RUN apt-get update
  10. RUN apt-get install -y openssh-server openssh-client
  11. RUN mkdir /var/run/sshd
  12. ADD .root/.ssh /root/.ssh
  13. RUN chmod -R 400 /root/.ssh/* && chmod  500 /root/.ssh & chown -R root:root /root/.ssh
  14.  
  15. ADD . /opt/comptroller
  16. RUN cp /opt/comptroller/etc/dockercfg /.dockercfg
  17. RUN pip install -r /opt/comptroller/requirements.txt
  18.  
  19. EXPOSE 7800 22
  20.  
  21. ENV DISCOVER totem-comptroller:7800
  22.  
  23. ENTRYPOINT ["/bin/bash","/opt/comptroller/launch.sh", "/opt/comptroller/server.py"]
  24.  
  25. CMD ["--help"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement