|
|
@@ -25,9 +25,9 @@ ARG PYTHON_VERSION=3.11 |
|
|
|
### |
|
|
|
### Stage 0: generate requirements.txt |
|
|
|
### |
|
|
|
# We hardcode the use of Debian bullseye here because this could change upstream |
|
|
|
# and other Dockerfiles used for testing are expecting bullseye. |
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bullseye as requirements |
|
|
|
# We hardcode the use of Debian bookworm here because this could change upstream |
|
|
|
# and other Dockerfiles used for testing are expecting bookworm. |
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bookworm as requirements |
|
|
|
|
|
|
|
# RUN --mount is specific to buildkit and is documented at |
|
|
|
# https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#build-mounts-run---mount. |
|
|
@@ -87,7 +87,7 @@ RUN if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \ |
|
|
|
### |
|
|
|
### Stage 1: builder |
|
|
|
### |
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bullseye as builder |
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bookworm as builder |
|
|
|
|
|
|
|
# install the OS build deps |
|
|
|
RUN \ |
|
|
@@ -158,7 +158,7 @@ RUN --mount=type=cache,target=/synapse/target,sharing=locked \ |
|
|
|
### Stage 2: runtime |
|
|
|
### |
|
|
|
|
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bullseye |
|
|
|
FROM docker.io/library/python:${PYTHON_VERSION}-slim-bookworm |
|
|
|
|
|
|
|
LABEL org.opencontainers.image.url='https://matrix.org/docs/projects/server/synapse' |
|
|
|
LABEL org.opencontainers.image.documentation='https://github.com/matrix-org/synapse/blob/master/docker/README.md' |
|
|
@@ -173,10 +173,10 @@ RUN \ |
|
|
|
gosu \ |
|
|
|
libjpeg62-turbo \ |
|
|
|
libpq5 \ |
|
|
|
libwebp6 \ |
|
|
|
libwebp7 \ |
|
|
|
xmlsec1 \ |
|
|
|
libjemalloc2 \ |
|
|
|
libicu67 \ |
|
|
|
libicu72 \ |
|
|
|
libssl-dev \ |
|
|
|
openssl \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|