22 lines
427 B
Docker
22 lines
427 B
Docker
FROM python:2.7
|
|
|
|
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
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"]
|