2019-02-14 01:17:05 +00:00
|
|
|
FROM python:3-alpine
|
2015-11-20 15:08:16 +00:00
|
|
|
|
|
|
|
MAINTAINER Jeffrey Forman <code@jeffreyforman.net>
|
|
|
|
|
2016-12-20 01:15:59 +00:00
|
|
|
WORKDIR /code
|
|
|
|
COPY . /code/
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2019-02-14 01:17:05 +00:00
|
|
|
RUN apk add --no-cache nsd build-base python3-dev libffi-dev openssl-dev libc-dev libxslt-dev \
|
|
|
|
&& pip install --upgrade pip \
|
|
|
|
&& pip install --no-cache-dir -r requirements.txt
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2016-12-06 02:56:49 +00:00
|
|
|
EXPOSE 8000
|
2015-11-20 15:08:16 +00:00
|
|
|
|
2019-02-14 01:32:25 +00:00
|
|
|
RUN ["python", "manage.py", "makemigrations", "binder"]
|
2016-12-06 02:56:49 +00:00
|
|
|
RUN ["python", "manage.py", "migrate"]
|
|
|
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|