From a54684a476f01909724ee5686f62368f4ced0419 Mon Sep 17 00:00:00 2001 From: bgme Date: Sat, 20 Apr 2024 01:04:51 +0800 Subject: [PATCH] Try to fix docker build failed. --- docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index cda9f2c01b7a..ca189ca6b3d4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -65,6 +65,10 @@ WORKDIR /synapse # Copy just what we need to run `poetry export`... COPY pyproject.toml poetry.lock /synapse/ +# Fix Package docutils (0.21.post1) not found. +# https://github.com/python-poetry/poetry/issues/9293 +RUN sed -e '$a [[tool.poetry.source]]' -e '$aname = "pypi-public"' -e '$aurl = "https://pypi.org/simple/"' -i /synapse/pyproject.toml + # Install custom extensions RUN /root/.local/bin/poetry add --lock -- \ "git+https://github.com/devture/matrix-synapse-shared-secret-auth#master" \