2016-12-06 02:56:49 +00:00
|
|
|
FROM python:2.7
|
2015-11-20 15:08:16 +00:00
|
|
|
|
|
|
|
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2017-04-01 01:10:10 +00:00
|
|
|
|
|
|
|
# Uncomment the following line to not use a remote database,
|
|
|
|
# and to use a local Sqlite database file.
|
|
|
|
# ENV NODB 1
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-20 01:15:59 +00:00
|
|
|
WORKDIR /code
|
|
|
|
COPY . /code/
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
RUN pip install -r requirements.txt
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
EXPOSE 8000
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
RUN ["python", "manage.py", "migrate"]
|
|
|
|
RUN ["python", "manage.py", "loaddata", "binder/fixtures/initial_data.json"]
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|