56 lines
1.4 KiB
Docker
56 lines
1.4 KiB
Docker
FROM registry.gitlab.com/thallian/docker-confd-env:master
|
|
|
|
ENV VERSION v0.33.0
|
|
|
|
RUN addgroup -g 2222 matrix-synapse
|
|
RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-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 matrix-synapse:matrix-synapse /var/lib/matrix-synapse
|
|
ENV HOME /var/lib/matrix-synapse
|
|
|
|
EXPOSE 8448
|
|
|
|
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/
|