From 1e126e7874db3c05f714d534a8fcb085d91d7e92 Mon Sep 17 00:00:00 2001 From: jeffrey forman Date: Fri, 20 Nov 2015 10:08:16 -0500 Subject: [PATCH] Add initial dockerfile for binder. runs/exposes port 8000 --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3748e6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM debian:jessie + +MAINTAINER Jeffrey Forman + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && apt-get install -y \ + git \ + python-bs4 \ + python-dev \ + python-django \ + python-dnspython \ + python-lxml \ + python-pip \ + python-sqlite + +RUN pip install \ + pybindxml + +WORKDIR /opt + +RUN git clone https://github.com/jforman/binder.git + +env PYTHONPATH $PYTHONPATH:/opt/binder +env DJANGO_SETTINGS_MODULE binder.settings + +run ["/opt/binder/manage.py", "migrate"] +run ["/opt/binder/manage.py", "loaddata", "/opt/binder/binder/fixtures/initial_data.json"] + +expose :8000 + +CMD ["/opt/binder/manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file