|
|
@ -2,15 +2,16 @@ FROM python:2-alpine |
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --no-cache --virtual .nacl_deps build-base libffi-dev zlib-dev openssl-dev libjpeg-turbo-dev linux-headers |
|
|
|
RUN apk add --no-cache --virtual .nacl_deps build-base libffi-dev zlib-dev openssl-dev libjpeg-turbo-dev linux-headers |
|
|
|
|
|
|
|
|
|
|
|
COPY synapse /usr/local/src/synapse |
|
|
|
COPY . /synapse |
|
|
|
COPY setup.py setup.cfg README.rst synctl /usr/local/src/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN cd /usr/local/src \ |
|
|
|
# A wheel cache may be provided in ./cache for faster build |
|
|
|
&& pip install --upgrade --process-dependency-links . \ |
|
|
|
RUN cd /synapse \ |
|
|
|
|
|
|
|
&& pip install --upgrade pip setuptools \ |
|
|
|
|
|
|
|
&& mkdir -p /synapse/cache \ |
|
|
|
|
|
|
|
&& pip install -f /synapse/cache --upgrade --process-dependency-links . \ |
|
|
|
|
|
|
|
&& mv /synapse/contrib/docker/* / \ |
|
|
|
&& rm -rf setup.py setup.cfg synapse |
|
|
|
&& rm -rf setup.py setup.cfg synapse |
|
|
|
|
|
|
|
|
|
|
|
COPY contrib/docker / |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOLUME ["/data"] |
|
|
|
VOLUME ["/data"] |
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/start.py"] |
|
|
|
ENTRYPOINT ["/start.py"] |
|
|
|