FROM python:2.7 MAINTAINER Jeffrey Forman ENV DEBIAN_FRONTEND noninteractive # 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"]