binder/Dockerfile

25 lines
534 B
Docker
Raw Normal View History

FROM python:2.7
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
RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY . /code/
RUN pip install -r requirements.txt
EXPOSE 8000
RUN ["python", "manage.py", "migrate"]
RUN ["python", "manage.py", "loaddata", "binder/fixtures/initial_data.json"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]