diff options
author | David Robertson <davidr@element.io> | 2022-04-01 12:37:02 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-04-01 12:38:01 +0100 |
commit | 2ff7fbffcdad7fb42cc4f90b04dead7f5ccff895 (patch) | |
tree | b16cbe82721baf5c810030c69ca611399af6b3ff /docker/Dockerfile | |
parent | Olddeps: cat patched pyproject, instead of diffing (diff) | |
download | synapse-2ff7fbffcdad7fb42cc4f90b04dead7f5ccff895.tar.xz |
Docker: `pip install --user poetry` path fix
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 4 |
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 |