How to avoid reinstalling dependencies with every deploy in Docker container with FastAPI (Python)?

Even a small change to the API requires me 10-15 minutes to deploy because all the dependencies are installed from the beginning every time.

Is there a way to optimize this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.