binder/Dockerfile

21 lines
416 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
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"]