Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM totem/python-base:2.7-trusty
- ENV DEBIAN_FRONTEND noninteractive
- ADD requirements.txt /opt/requirements.txt
- RUN pip install -r /opt/requirements.txt
- ##SSH Server (To troubleshoot issues with image factory)
- RUN apt-get update
- RUN apt-get install -y openssh-server openssh-client
- RUN mkdir /var/run/sshd
- ADD .root/.ssh /root/.ssh
- RUN chmod -R 400 /root/.ssh/* && chmod 500 /root/.ssh & chown -R root:root /root/.ssh
- ADD . /opt/comptroller
- RUN cp /opt/comptroller/etc/dockercfg /.dockercfg
- RUN pip install -r /opt/comptroller/requirements.txt
- EXPOSE 7800 22
- ENV DISCOVER totem-comptroller:7800
- ENTRYPOINT ["/bin/bash","/opt/comptroller/launch.sh", "/opt/comptroller/server.py"]
- CMD ["--help"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement