2017-04-29 10:17:41 +00:00
|
|
|
FROM python:3.6
|
|
|
|
|
|
|
|
COPY constraints.txt requirements.txt /reqs/
|
|
|
|
|
|
|
|
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 \
|
|
|
|
&& apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& pip install --no-cache-dir -r /reqs/requirements.txt -c /reqs/constraints.txt \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps \
|
|
|
|
&& rm -rf /usr/src/python ~/.cache
|
|
|
|
|
|
|
|
COPY . /app/symposion_app
|
|
|
|
|
|
|
|
WORKDIR /app/symposion_app
|
2017-05-07 06:37:26 +00:00
|
|
|
CMD ["/app/symposion_app/docker/deploy_with_sqlite.sh"]
|