matrix-synapse/Dockerfile

56 lines
1.4 KiB
Docker
Raw Normal View History

2018-05-23 14:58:50 +00:00
FROM registry.gitlab.com/thallian/docker-confd-env:master
2017-02-21 13:57:16 +00:00
2018-11-20 12:17:47 +00:00
ENV VERSION v0.33.9
2017-02-21 13:57:16 +00:00
RUN addgroup -g 2222 matrix-synapse
RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synapse
2017-02-21 13:57:16 +00:00
RUN apk add --no-cache \
libressl \
python2 \
2018-05-23 14:58:50 +00:00
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
2017-02-21 13:57:16 +00:00
ADD /rootfs /
RUN chown -R matrix-synapse:matrix-synapse /var/lib/matrix-synapse
ENV HOME /var/lib/matrix-synapse
2017-02-21 13:57:16 +00:00
EXPOSE 8448
2018-05-23 19:34:55 +00:00
VOLUME /var/lib/matrix-synapse/media_store/ /var/lib/matrix-synapse/uploads /var/lib/matrix-synapse/signing/ /etc/ssl/matrix-synapse/ /var/lib/matrix-synapse/registrations/