New: Intelligent Flashcards spaced-repetition decks for every topic, built to make things actually stick.
Your Dockerfile rebuilds frequently and pip install -r requirements.txt re-downloads every package each time. Which BuildKit feature fixes this without bloating the final image?
pip install -r requirements.txt
Copy ~/.cache/pip into the image with COPY --from=host
~/.cache/pip
COPY --from=host
Add RUN --mount=type=cache,target=/root/.cache/pip to that step
RUN --mount=type=cache,target=/root/.cache/pip
Add a VOLUME /root/.cache/pip declaration to the Dockerfile
VOLUME /root/.cache/pip