RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r /app/requirements.txt
это команды, которые нужно выполнить
дальше вопрос по копированию файла
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r /app/requirements.txt
^^^ тут пип обновится
RUN pip install --no-cache-dir --upgrade pip
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
^^^ тут пип НЕ обновится, но зависимости при сборке поставятся заново