2015-11-20 15:08:16 +00:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2015-11-20 15:08:16 +00:00
|
|
|
git \
|
2016-02-06 17:31:14 +00:00
|
|
|
python-pip
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
RUN git clone https://github.com/jforman/binder.git /opt/binder/
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
RUN pip install -r /opt/binder/requirements.txt
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
ENV PYTHONPATH $PYTHONPATH:/opt/binder
|
|
|
|
ENV DJANGO_SETTINGS_MODULE binder.settings
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
RUN ["/opt/binder/manage.py", "migrate"]
|
|
|
|
RUN ["/opt/binder/manage.py", "loaddata", "/opt/binder/binder/fixtures/initial_data.json"]
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
EXPOSE :8000
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-02-06 17:31:14 +00:00
|
|
|
CMD ["/opt/binder/manage.py", "runserver", "0.0.0.0:8000"]
|