aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-06-04 19:35:47 +0100
committerGravatar Chris <[email protected]>2021-06-04 19:35:47 +0100
commit0ed7df8e9a05b999855e52f4b64a097e6de22ce3 (patch)
treea7c7832b55e775d62a85695532c4094ede8421ef
parentMerge pull request #614 from Shivansh-007/feature/pride-leaders (diff)
Install Poetry globally in Docker
The previous way would error out when building due to not being able to find a file on the overwritten path. https://paste.pythondiscord.com/alixoqaxuc.py
-rw-r--r--Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 2bad6450..01a7f3b6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,9 +4,8 @@ FROM python:3.9-slim
ENV PIP_NO_CACHE_DIR=false \
POETRY_VIRTUALENVS_CREATE=false
-# Install Poetry and add it to the path
-RUN pip install --user poetry
-ENV PATH="${PATH}:/root/.local/bin"
+# Install Poetry
+RUN pip install --upgrade poetry
WORKDIR /bot