From 0ed7df8e9a05b999855e52f4b64a097e6de22ce3 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 4 Jun 2021 19:35:47 +0100 Subject: 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 --- Dockerfile | 5 ++--- 1 file 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 -- cgit v1.2.3