matrix-synapse/Dockerfile

57 lines
1.3 KiB
Docker
Raw Normal View History

2019-01-01 14:59:47 +00:00
FROM alpine:3.8 AS builder
RUN apk add --no-cache \
alpine-sdk \
2019-01-01 15:19:38 +00:00
python3-dev
2019-01-01 14:59:47 +00:00
2019-01-01 15:19:38 +00:00
RUN pip3 install wheel
2019-01-06 16:37:27 +00:00
RUN pip3 wheel twisted==17.5.0
2019-01-01 14:59:47 +00:00
2018-11-27 07:39:06 +00:00
FROM thallian/confd-env:latest
2017-02-21 13:57:16 +00:00
2019-01-01 14:59:47 +00:00
ENV VERSION v0.34.0
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 \
2019-01-01 14:59:47 +00:00
python3 \
py3-jsonschema \
py3-pynacl \
py3-cffi \
py3-service_identity \
py3-openssl \
py3-yaml \
py3-asn1 \
py3-asn1-modules \
py3-bcrypt \
py3-pillow \
py3-psutil \
py3-msgpack \
py3-phonenumbers \
py3-attrs \
py3-netaddr \
py3-jinja2 \
py3-psycopg2 \
py3-simplejson \
py3-zope-interface \
py3-requests \
py3-defusedxml \
py3-future \
py3-dateutil \
py3-ldap3
2019-01-01 15:19:38 +00:00
RUN mkdir /tmp/wheels
COPY --from=builder /Twisted*.whl /tmp/wheels
2019-01-01 14:59:47 +00:00
2019-01-01 15:19:38 +00:00
RUN pip3 install /tmp/wheels/*.whl
2019-01-01 14:59:47 +00:00
RUN pip3 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
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/