binder/Dockerfile

22 lines
504 B
Docker
Raw Normal View History

FROM python:3-alpine
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
WORKDIR /code
2019-03-22 00:04:21 +00:00
RUN apk add --no-cache nsd build-base python3-dev libffi-dev openssl-dev libc-dev libxslt-dev mariadb-connector-c-dev \
&& pip install --upgrade pip
COPY requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /code/
EXPOSE 8000
RUN ["python", "manage.py", "makemigrations", "binder"]
RUN ["python", "manage.py", "migrate"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]