summary refs log tree commit diff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-04-01 12:37:02 +0100
committerDavid Robertson <davidr@element.io>2022-04-01 12:38:01 +0100
commit2ff7fbffcdad7fb42cc4f90b04dead7f5ccff895 (patch)
treeb16cbe82721baf5c810030c69ca611399af6b3ff /docker/Dockerfile
parentOlddeps: cat patched pyproject, instead of diffing (diff)
downloadsynapse-2ff7fbffcdad7fb42cc4f90b04dead7f5ccff895.tar.xz
Docker: `pip install --user poetry` path fix
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1932f278e6..132ac56d24 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -73,7 +73,7 @@ ENV POETRY_VIRTUALENVS_IN_PROJECT=true \
 # used while you develop on the source
 RUN --mount=type=cache,target=/opt/poetry/artifacts \
     --mount=type=cache,target=/opt/poetry/.cache/pypoetry/cache \
-  poetry install --no-dev --no-root --no-interaction --no-ansi --extras all
+  /root/.local/bin/poetry install --no-dev --no-root --no-interaction --no-ansi --extras all
 
 # Copy over the synapse source code.
 COPY synapse /synapse/synapse/
@@ -81,7 +81,7 @@ COPY synapse /synapse/synapse/
 # Install the synapse package itself, by omitting the --no-root argument
 RUN --mount=type=cache,target=/opt/poetry/artifacts \
     --mount=type=cache,target=/opt/poetry/cache \
-  poetry install --no-dev --no-interaction --no-ansi --extras all
+  /root/.local/bin/poetry install --no-dev --no-interaction --no-ansi --extras all
 
 ###
 ### Stage 1: runtime