[Python] How to cache python pip requirements of docker build progress?

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I'm on a very slow internet connection, and the

    RUN pip install -r requirements.txt


    step of docker compose up --build keeps timing out halfway through.

    When I run docker compose up --build again, it looks like it restarts from the very beginning. All of the python packages get downloaded from scratch.

    How can I make docker use the downloaded packages from the previous attempt?

    Continue reading...

Compartilhe esta Página