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/