matrix-synapse/Dockerfile

40 lines
871 B
Docker
Raw Normal View History

2022-02-16 07:50:40 +00:00
FROM alpine:3.15 AS builder
2019-01-01 14:59:47 +00:00
2022-02-09 10:10:01 +00:00
ENV VERSION=v1.52.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 \
2020-07-26 09:45:24 +00:00
py3-pip \
2019-02-15 10:16:04 +00:00
libffi-dev \
openssl-dev \
zlib-dev \
jpeg-dev \
2021-02-17 14:15:18 +00:00
cargo
2019-01-01 14:59:47 +00:00
2021-02-23 21:51:10 +00:00
RUN pip3 install --target="/install" 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
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 \
2021-02-23 22:13:53 +00:00
py3-psycopg2 \
py3-authlib \
2019-02-15 10:16:04 +00:00
libffi \
openssl \
zlib \
jpeg
2019-01-01 14:59:47 +00:00
2021-02-23 21:51:10 +00:00
ENV PYTHONPATH=$PYTHONPATH:/py-pkgs
COPY --from=builder /install /py-pkgs
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
2020-07-21 17:38:30 +00:00
VOLUME /var/lib/matrix-synapse/media_store/ /var/lib/matrix-synapse/signing/ /etc/ssl/matrix-synapse/ /var/lib/matrix-synapse/registrations/