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

View file

@ -9,13 +9,15 @@ ENV PYTHONUNBUFFERED 1
ENV PIP_NO_CACHE_DIR 1 ENV PIP_NO_CACHE_DIR 1
ENV PATH "/root/.local/bin:${PATH}"
COPY requirements requirements COPY requirements requirements
RUN \ RUN \
PIP_CONSTRAINT=requirements/runtime-prerequisites.txt \ PIP_CONSTRAINT=requirements/runtime-prerequisites.txt \
pip install --upgrade --no-cache-dir \ pip install --user --upgrade --no-cache-dir \
-r requirements/runtime-prerequisites.in && \ -r requirements/runtime-prerequisites.in && \
PIP_CONSTRAINT=requirements/runtime.txt \ 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 -r requirements/runtime.in
WORKDIR /app WORKDIR /app