Skip to content

Commit

Permalink
updated dockerfile, and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kencochrane committed Aug 19, 2013
1 parent b9a41ca commit 37953f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ 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/shipyard/bin/djdocker manage.py syncdb --noinput)

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"]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ Dockerfile
----------
Use this to build a new image

$ sudo docker build .
$ sudo docker build .

With a tag for easier reuse
$ sudo docker build -t <your username>/django-docker .

Running the container
$ sudo docker run -d -p :8000 <your username>/django-docker

Now go to <your ip>:8000 in your browser

0 comments on commit 37953f6

Please sign in to comment.