Add initial dockerfile for binder. runs/exposes port 8000

This commit is contained in:
jeffrey forman 2015-11-20 10:08:16 -05:00
parent f5b557384a
commit 1e126e7874
1 changed files with 32 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM debian:jessie
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
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"]