Created
December 1, 2014 21:44
-
-
Save serkanh/0701bde79463e7305783 to your computer and use it in GitHub Desktop.
Django Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:12.10 | |
MAINTAINER Ken Cochrane "[email protected]" | |
RUN apt-get -qq update | |
RUN apt-get install -y python-dev python-setuptools supervisor git-core | |
RUN easy_install pip | |
RUN pip install virtualenv | |
RUN pip install uwsgi | |
RUN virtualenv --no-site-packages /opt/ve/djdocker | |
ADD . /opt/apps/djdocker | |
ADD .docker/supervisor.conf /opt/supervisor.conf | |
ADD .docker/run.sh /usr/local/bin/run | |
RUN (cd /opt/apps/djdocker && git remote rm origin) | |
RUN (cd /opt/apps/djdocker && git remote add origin https://github.com/kencochrane/django-docker.git) | |
RUN /opt/ve/djdocker/bin/pip install -r /opt/apps/djdocker/requirements.txt | |
RUN (cd /opt/apps/djdocker && /opt/ve/djdocker/bin/python manage.py syncdb --noinput) | |
RUN (cd /opt/apps/djdocker && /opt/ve/djdocker/bin/python manage.py collectstatic --noinput) | |
EXPOSE 8000 | |
CMD ["/bin/sh", "-e", "/usr/local/bin/run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment