diff --git a/Dockerfile.django-debian b/Dockerfile.django-debian index c9bccc459d..5efe05defa 100644 --- a/Dockerfile.django-debian +++ b/Dockerfile.django-debian @@ -31,9 +31,10 @@ RUN \ rm -rf /var/lib/apt/lists && \ true COPY requirements.txt ./ +COPY constraints.txt ./ # CPUCOUNT=1 is needed, otherwise the wheel for uwsgi won't always be build succesfully # https://github.com/unbit/uwsgi/issues/1318#issuecomment-542238096 -RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt +RUN CPUCOUNT=1 PIP_CONSTRAINT=/app/constraints.txt pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt FROM base AS django WORKDIR /app diff --git a/Dockerfile.nginx-debian b/Dockerfile.nginx-debian index 9f6f3ece9f..580772c7f8 100644 --- a/Dockerfile.nginx-debian +++ b/Dockerfile.nginx-debian @@ -30,9 +30,10 @@ RUN \ rm -rf /var/lib/apt/lists && \ true COPY requirements.txt ./ +COPY constraints.txt ./ # CPUCOUNT=1 is needed, otherwise the wheel for uwsgi won't always be build succesfully # https://github.com/unbit/uwsgi/issues/1318#issuecomment-542238096 -RUN CPUCOUNT=1 pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt +RUN CPUCOUNT=1 PIP_CONSTRAINT=/app/constraints.txt pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt FROM build AS collectstatic diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000000..764a11f56c --- /dev/null +++ b/constraints.txt @@ -0,0 +1 @@ +setuptools<72