FROM registry.gitlab.com/thallian/docker-confd-env:master ENV VERSION v0.30.0-rc1 RUN addgroup -g 2222 synapse RUN adduser -h /var/lib/synapse -u 2222 -D -G synapse synapse RUN apk add --no-cache \ libressl \ python2 \ py2-pip \ py2-psycopg2 \ py2-cffi \ py2-msgpack \ py2-psutil \ py2-openssl \ py2-service_identity \ py2-yaml \ py2-pillow \ py2-asn1 \ py2-phonenumbers \ py2-six \ py2-netaddr \ py2-jsonschema \ py-jinja2 \ py-twisted \ py2-requests \ py2-future \ py2-tz \ py2-dateutil \ py2-olefile \ py2-markupsafe \ py2-zope-interface \ py2-simplejson \ py2-chardet \ py2-certifi \ py2-bcrypt RUN apk --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main add py2-pynacl COPY py-affinity-0.1.0-r0.apk /tmp/py-affinity-0.1.0-r0.apk COPY py2-blist-1.3.6-r0.apk /tmp/py2-blist-1.3.6-r0.apk RUN apk --allow-untrusted add /tmp/py-affinity-0.1.0-r0.apk /tmp/py2-blist-1.3.6-r0.apk RUN pip install https://github.com/matrix-org/synapse/tarball/$VERSION ADD /rootfs / RUN chown -R synapse:synapse /var/lib/synapse ENV HOME /var/lib/synapse EXPOSE 8448 VOLUME /var/lib/synapse/media_store/ /var/lib/synapse/uploads /var/lib/synapse/signing/ /etc/ssl/synapse/