aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-09-13 00:27:53 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-13 00:27:53 +0100
commit2db6a241bde75e6cd36f3fe0f32a3530187a827a (patch)
tree8fe0b35a682c6dd51b399397995a1709ce95656f
parentIgnore mounted in-project venvs on startup (diff)
Specify the path for poetry venvs
Without this the venv would be created in /root/.cache and the nonn-root user that prod runs under would not have access to it.
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index da65bbf3b..65ca8ce51 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,7 +6,8 @@ ARG git_sha="development"
# POETRY_VIRTUALENVS_IN_PROJECT is required to ensure in-projects venvs mounted from the host in dev
# don't get prioritised by `poetry run`
ENV POETRY_VERSION=1.2.0 \
- POETRY_HOME="/opt/poetry" \
+ POETRY_HOME="/opt/poetry/home" \
+ POETRY_CACHE_DIR="/opt/poetry/cache" \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=false \
APP_DIR="/bot" \