2017-07-31 12:41:47 +00:00
|
|
|
FROM python:3.6
|
|
|
|
VOLUME /source
|
|
|
|
COPY constraints.txt requirements.txt /setup/
|
|
|
|
RUN set -ex \
|
|
|
|
&& buildDeps=' \
|
|
|
|
libmysqlclient-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libwebp-dev \
|
|
|
|
libpng-dev \
|
|
|
|
liblcms2-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
libmemcached-dev \
|
|
|
|
libsasl2-dev \
|
|
|
|
' \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y git xmlsec1 libmysqlclient18 \
|
|
|
|
&& apt-get install -y $buildDeps --no-install-recommends
|
|
|
|
RUN pip install -c /setup/constraints.txt -r /setup/requirements.txt
|
2017-09-17 02:51:10 +00:00
|
|
|
ENTRYPOINT ["python","/source/manage.py", "makemigrations"]
|
2017-07-31 12:41:47 +00:00
|
|
|
|