From 8d5f27cca4a50790668fae0c4211d3f380213dad Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 30 Nov 2022 11:17:41 +0100 Subject: [PATCH] Install Twine in the user-global site-packages --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4375694..119d9c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,15 @@ ENV PYTHONUNBUFFERED 1 ENV PIP_NO_CACHE_DIR 1 +ENV PATH "/root/.local/bin:${PATH}" + COPY requirements requirements RUN \ PIP_CONSTRAINT=requirements/runtime-prerequisites.txt \ - pip install --upgrade --no-cache-dir \ + pip install --user --upgrade --no-cache-dir \ -r requirements/runtime-prerequisites.in && \ PIP_CONSTRAINT=requirements/runtime.txt \ - pip install --upgrade --no-cache-dir --prefer-binary \ + pip install --user --upgrade --no-cache-dir --prefer-binary \ -r requirements/runtime.in WORKDIR /app