Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################
- # Dockerfile to build Python WSGI Application Containers
- ############################################################
- # Set the base image to Ubuntu
- #FROM ubuntu:14.04
- FROM appgave_imgg:latest
- # File Author / Maintainer
- MAINTAINER ghostlines
- # Add the application resources URL
- #RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty main universe" >> /etc/apt/sources.list
- # Update the sources list
- RUN apt-get update
- # Install basic applications
- RUN apt-get install -y tar git curl vim wget dialog net-tools build-essential
- # Install Python and Basic Python Tools
- RUN apt-get install -y python python-dev python-distribute python-pip
- # Copy the application folder inside the container
- ADD ./keys/id_dsa /root/.ssh/id_dsa
- ADD ./known_hosts /root/.ssh/known_hosts
- RUN chmod 600 /root/.ssh/id_dsa
- RUN echo "IdentityFile /root/.ssh/id_dsa" >> /etc/ssh/ssh_config
- RUN git config --global user.email email
- RUN git config --global user.name typhoon
- #RUN ssh -v git@bitucket.org
- #RUN mkdir /opt/
- RUN cd /opt/appgave
- RUN git pull
- #RUN git clone git@bitbucket.org:ErnoTurner/appgave.git /opt/appgave
- # Get pip to download and install requirements:
- RUN pip install -r /opt/appgave/requirements.txt
- # Expose ports
- EXPOSE 5001
- # Set the default directory where CMD will execute
- WORKDIR /opt/appgave
- # Set the default command to execute
- # when creating a new container
- # i.e. using CherryPy to serve the application
- CMD gunicorn appgave_app:app -c gunicorn_config.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement