summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/12439.misc1
-rw-r--r--docker/Dockerfile2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/12439.misc b/changelog.d/12439.misc
new file mode 100644
index 0000000000..43bc64ed55
--- /dev/null
+++ b/changelog.d/12439.misc
@@ -0,0 +1 @@
+Bundle locked versions of dependencies into the Docker image.
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 6009da7db7..6f87702cc8 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -93,7 +93,7 @@ RUN \
 # This is aiming at installing the `[tool.poetry.depdendencies]` from pyproject.toml.
 COPY --from=requirements /synapse/requirements.txt /synapse/
 RUN --mount=type=cache,target=/root/.cache/pip \
-  pip install --prefix="/install" --no-warn-script-location -r /synapse/requirements.txt
+  pip install --prefix="/install" --no-deps --no-warn-script-location -r /synapse/requirements.txt
 
 # Copy over the rest of the synapse source code.
 COPY synapse /synapse/synapse/