Install Twine in the user-global site-packages

This commit is contained in:
Sviatoslav Sydorenko 2022-11-30 11:17:41 +01:00
parent b0dc178d8e
commit 8d5f27cca4
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 4 additions and 2 deletions

View File

@ -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