2024-05-31 08:19:36 +00:00
|
|
|
FROM docker.io/alpine:3.20 AS builder
|
2019-02-15 10:16:04 +00:00
|
|
|
|
2019-01-01 14:59:47 +00:00
|
|
|
RUN apk add --no-cache \
|
2022-11-23 17:40:12 +00:00
|
|
|
alpine-sdk \
|
|
|
|
python3-dev \
|
|
|
|
py3-pip \
|
2023-06-25 14:16:37 +00:00
|
|
|
py3-wheel \
|
2022-11-23 17:40:12 +00:00
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
zlib-dev \
|
|
|
|
jpeg-dev \
|
2024-01-01 18:58:27 +00:00
|
|
|
rust \
|
2024-04-23 17:10:58 +00:00
|
|
|
cargo \
|
2024-01-01 18:58:27 +00:00
|
|
|
poetry \
|
|
|
|
git
|
|
|
|
|
2024-11-25 16:21:45 +00:00
|
|
|
ENV VERSION=v1.119.0
|
2024-01-01 18:58:27 +00:00
|
|
|
RUN git clone https://github.com/element-hq/synapse.git
|
|
|
|
WORKDIR /synapse
|
|
|
|
RUN git checkout $VERSION
|
|
|
|
|
|
|
|
RUN poetry export -o /synapse/requirements.txt
|
|
|
|
RUN pip3 install --target="/install" -r /synapse/requirements.txt
|
2024-04-23 17:10:58 +00:00
|
|
|
RUN pip3 install --target="/install" --no-deps --no-warn-script-location /synapse[all];
|
2019-01-01 14:59:47 +00:00
|
|
|
|
|
|
|
|
2024-05-31 08:19:36 +00:00
|
|
|
FROM docker.io/thallian/confd-env:3.20-3.1.6.2
|
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 \
|
2022-11-23 17:40:12 +00:00
|
|
|
python3 \
|
|
|
|
py3-psycopg2 \
|
|
|
|
py3-authlib \
|
|
|
|
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 /
|
|
|
|
|
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
|
|
|
|
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/
|