FROM alpine:3.5 AS builder RUN apk add --no-cache build-base ca-certificates python2-dev py2-pip su-exec \ py2-psycopg2 py2-msgpack py2-psutil py2-openssl py2-yaml py-twisted py2-netaddr \ py2-cffi py2-asn1 py2-asn1-modules py2-cryptography py2-pillow py2-decorator py2-jinja2 \ py2-requests py2-simplejson py2-tz py2-crypto py2-dateutil py2-service_identity RUN pip install https://github.com/kdltr/synapse/tarball/master ADD synapse /app/synapse ENTRYPOINT python -m synapse.app.homeserver \ --server-name tx0.co \ --config-path /app/synapse/homeserver.yaml \ --report-stats=no