synapse (sha256:253735470b4dbbb4747fd0f2ba85b76db779546ffba5eee38a5e9b26dfc78859)
Published 2026-09-03 09:09:13 +00:00 by alexwolff
Installation
docker pull git.unitystack.org/unitystack/synapse@sha256:253735470b4dbbb4747fd0f2ba85b76db779546ffba5eee38a5e9b26dfc78859sha256:253735470b4dbbb4747fd0f2ba85b76db779546ffba5eee38a5e9b26dfc78859About this package
Element Synapse with pinned S3 media storage support and security updates
Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1787529600' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.13.15 |
| ENV PYTHON_SHA256=1e66a7945a48390ee4c2a4268a0e4185884059a13c4aab6d148aa208deea4a76 |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev g++ gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| ARG TARGETARCH=amd64 |
| ARG SYNAPSE_VERSION_STRING |
| ENV SYNAPSE_VERSION_STRING= |
| LABEL org.opencontainers.image.url=https://github.com/element-hq/synapse |
| LABEL org.opencontainers.image.documentation=https://element-hq.github.io/synapse/latest/ |
| LABEL org.opencontainers.image.source=https://github.com/element-hq/synapse.git |
| LABEL org.opencontainers.image.licenses=AGPL-3.0-or-later OR LicenseRef-Element-Commercial |
| COPY /install-amd64/etc /etc # buildkit |
| COPY /install-amd64/usr /usr # buildkit |
| COPY /install-amd64/var /var # buildkit |
| COPY /install /usr/local # buildkit |
| COPY ./docker/start.py /start.py # buildkit |
| COPY ./docker/conf /conf # buildkit |
| EXPOSE [8008/tcp 8448/tcp] |
| EXPOSE [19090/tcp] |
| ENV PYTHONUNBUFFERED=1 |
| ENTRYPOINT ["/start.py"] |
| HEALTHCHECK {Test:[CMD-SHELL curl -fSs http://localhost:8008/health || exit 1] Interval:15s Timeout:5s StartPeriod:5s StartInterval:0s Retries:0} |
| ARG SYNAPSE_VERSION |
| ARG SYNAPSE_DIGEST |
| ARG S3_PROVIDER_VERSION |
| ARG UNITYSTACK_REVISION |
| ARG BUILD_TIMESTAMP |
| ARG CI_COMMIT_SHA |
| LABEL org.opencontainers.image.title=UnityStack Synapse org.opencontainers.image.description=Element Synapse with pinned S3 media storage support and security updates org.opencontainers.image.authors=UnityStack GmbH org.opencontainers.image.vendor=UnityStack GmbH org.opencontainers.image.licenses=AGPL-3.0-only AND Apache-2.0 org.opencontainers.image.version=v1.160.0-u1 org.opencontainers.image.created=2026-09-03T19:07:55+10:00 org.opencontainers.image.revision=83d3aafea6992da9d418ac6230e8b015ee8ce1d9 org.opencontainers.image.source=https://git.unitystack.org/UnityStack/synapse org.opencontainers.image.url=https://git.unitystack.org/UnityStack/synapse org.opencontainers.image.documentation=https://git.unitystack.org/UnityStack/synapse/src/branch/main/README.md org.opencontainers.image.base.name=oci.element.io/synapse:v1.160.0 org.opencontainers.image.base.digest=sha256:78de1d10bef02e375f861d1cc99f8bedd9381d4f9083ea8b2c22a053477b205f com.unitystack.synapse.upstream-version=1.160.0 com.unitystack.synapse.s3-provider-version=1.7.0 com.unitystack.image.revision=u1 |
| USER root |
| COPY requirements-runtime.txt /tmp/requirements-runtime.txt # buildkit |
| RUN |6 SYNAPSE_VERSION=1.160.0 SYNAPSE_DIGEST=sha256:78de1d10bef02e375f861d1cc99f8bedd9381d4f9083ea8b2c22a053477b205f S3_PROVIDER_VERSION=1.7.0 UNITYSTACK_REVISION=1 BUILD_TIMESTAMP=2026-09-03T19:07:55+10:00 CI_COMMIT_SHA=83d3aafea6992da9d418ac6230e8b015ee8ce1d9 /bin/sh -c set -eux; rm -f /usr/sbin/gosu; python3 -m pip install --no-cache-dir --disable-pip-version-check --root-user-action=ignore --no-deps --only-binary=:all: --require-hashes --requirement /tmp/requirements-runtime.txt; rm -f /tmp/requirements-runtime.txt; python3 -m pip check; python3 -c "from importlib.metadata import version; assert version('matrix-synapse') == '${SYNAPSE_VERSION}'; assert version('synapse-s3-storage-provider') == '${S3_PROVIDER_VERSION}'; import s3_storage_provider"; python3 -m synapse.app.homeserver --help >/dev/null; s3_media_upload --help >/dev/null; rm -rf /usr/local/lib/python3.13/site-packages/pip /usr/local/lib/python3.13/site-packages/pip-*.dist-info; rm -f /usr/local/bin/pip /usr/local/bin/pip3 /usr/local/bin/pip3.13; test ! -e /usr/sbin/gosu; test ! -e /usr/local/bin/pip3 # buildkit |
| USER 10091:10091 |
Labels
| Key | Value |
|---|---|
| com.unitystack.image.revision | u1 |
| com.unitystack.synapse.s3-provider-version | 1.7.0 |
| com.unitystack.synapse.upstream-version | 1.160.0 |
| gitsha1 | 92fb8a06dc351c184eb96360c67b124f26c2d54b |
| org.opencontainers.image.authors | UnityStack GmbH |
| org.opencontainers.image.base.digest | sha256:78de1d10bef02e375f861d1cc99f8bedd9381d4f9083ea8b2c22a053477b205f |
| org.opencontainers.image.base.name | oci.element.io/synapse:v1.160.0 |
| org.opencontainers.image.created | 2026-09-03T19:07:55+10:00 |
| org.opencontainers.image.description | Element Synapse with pinned S3 media storage support and security updates |
| org.opencontainers.image.documentation | https://git.unitystack.org/UnityStack/synapse/src/branch/main/README.md |
| org.opencontainers.image.licenses | AGPL-3.0-only AND Apache-2.0 |
| org.opencontainers.image.revision | 83d3aafea6992da9d418ac6230e8b015ee8ce1d9 |
| org.opencontainers.image.source | https://git.unitystack.org/UnityStack/synapse |
| org.opencontainers.image.title | UnityStack Synapse |
| org.opencontainers.image.url | https://git.unitystack.org/UnityStack/synapse |
| org.opencontainers.image.vendor | UnityStack GmbH |
| org.opencontainers.image.version | v1.160.0-u1 |
Details
2026-09-03 09:09:13 +00:00
Versions (9)
View all
Container
20
OCI / Docker
linux/amd64
UnityStack GmbH
AGPL-3.0-only AND Apache-2.0
148 MiB