From 31eda4374ac07c8cd6e3a7f02628e690ad45684b Mon Sep 17 00:00:00 2001 From: Vit Zikmund Date: Thu, 2 Jan 2025 12:18:38 +0100 Subject: [PATCH] cleanup(docker): fix a little code-bloat --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d89a530..80a4ab7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ARG VENV # Set WORKDIR (also creates the dir) WORKDIR $WORKDIR -# Build wheels for uWSGI and all requirements +# Install packages to build wheels for uWSGI and other requirements RUN set -eux ;\ export DEBIAN_FRONTEND=noninteractive ;\ apt-get update ;\ @@ -40,8 +40,8 @@ ENV PIP_REQUIRE_VIRTUALENV=1 ENV PYTHONPYCACHEPREFIX=/tmp/__pycache__ # Install runtime dependencies -RUN --mount=source=requirements/main.txt,target=requirements/main.txt \ - pip install -r requirements/main.txt +RUN --mount=target=/build-ctx \ + pip install -r /build-ctx/requirements/main.txt RUN pip install uwsgi==$UWSGI_VERSION # Install extra packages into the virtual env RUN pip install ${EXTRA_PACKAGES}