2019-12-20 08:36:44 +00:00
|
|
|
FROM alpine:3.11 AS builder
|
2019-01-01 14:59:47 +00:00
|
|
|
|
2020-02-13 07:49:57 +00:00
|
|
|
ENV VERSION=v1.10.0
|
2019-02-15 10:16:04 +00:00
|
|
|
|
2019-01-01 14:59:47 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
alpine-sdk \
|
2019-02-15 10:16:04 +00:00
|
|
|
python3-dev \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
zlib-dev \
|
|
|
|
jpeg-dev
|
2019-01-01 14:59:47 +00:00
|
|
|
|
2019-01-01 15:19:38 +00:00
|
|
|
RUN pip3 install wheel
|
2019-02-15 10:16:04 +00:00
|
|
|
RUN pip3 wheel matrix-synapse==$VERSION
|
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
|
|
|
|
2018-05-23 16:04:35 +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 \
|
2019-01-01 14:59:47 +00:00
|
|
|
python3 \
|
2019-02-15 10:25:10 +00:00
|
|
|
py3-psycopg2 \
|
2019-05-31 06:40:59 +00:00
|
|
|
py3-jinja2 \
|
2019-02-15 10:16:04 +00:00
|
|
|
libffi \
|
|
|
|
openssl \
|
|
|
|
zlib \
|
|
|
|
jpeg
|
2019-01-01 14:59:47 +00:00
|
|
|
|
2019-01-01 15:19:38 +00:00
|
|
|
RUN mkdir /tmp/wheels
|
2019-02-15 10:16:04 +00:00
|
|
|
COPY --from=builder /*.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
|
2017-02-21 13:57:16 +00:00
|
|
|
|
|
|
|
ADD /rootfs /
|
|
|
|
|
2018-05-23 16:04:35 +00:00
|
|
|
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/
|