FROM alpine:edge MAINTAINER Jan Christian Grünhage RUN apk add --update \ python2 \ py-pip \ py-virtualenv \ py-setuptools \ python-dev \ postgresql-dev \ build-base \ linux-headers \ libffi-dev \ jpeg-dev \ tiff-dev \ bash \ sqlite \ su-exec \ openldap-dev \ && virtualenv -p python2.7 /synapse \ && source /synapse/bin/activate \ && pip install --upgrade \ setuptools \ cffi \ incremental \ python-ldap \ psycopg2 \ && pip install https://github.com/matrix-org/synapse/tarball/master \ && mkdir /data ADD root / VOLUME /data EXPOSE 8448 8008 ENTRYPOINT ["/usr/local/bin/run.sh"] CMD ["start"]