infra/containers/synapse/Containerfile
Renovate Bot 8416518590
All checks were successful
/ build-synapse (push) Successful in 23s
/ roll out update (push) Successful in 9s
/ diff-and-deploy (push) Successful in 2m2s
chore(deps): update matrixdotorg/synapse docker tag to v1.120.2
2024-12-03 17:01:56 +00:00

6 lines
725 B
Docker

FROM matrixdotorg/synapse:v1.120.2
RUN pip install boto3 humanize tqdm
# there is probably a better way to figure out where the site packages are
# this used to be hard coded to /usr/local/lib/python3.11/site-packages but then synapse updated it's minor python version and it broke
RUN curl -Lo $(python -c 'import sys; print([x for x in sys.path if "site-packages" in x][0])')/s3_storage_provider.py https://github.com/matrix-org/synapse-s3-storage-provider/raw/v1.4.0/s3_storage_provider.py
RUN curl -L https://github.com/matrix-org/synapse-s3-storage-provider/raw/main/scripts/s3_media_upload | sed "s#/usr/bin/env python#/usr/local/bin/python#" > /usr/local/bin/s3_media_upload && chmod +x /usr/local/bin/s3_media_upload