Splits torch+torchvision into its own RUN layer so edits to requirements.txt don't invalidate the ~200MB CPU-only torch download. Adds buildkit cache mounts on both pip-install layers so even when a layer is invalidated (or buildkit evicts it) the wheel is reused from the on-disk pip cache instead of refetching from download.pytorch.org. Triggered by two consecutive deploy failures where pytorch.org timed out mid-download (2026-05-13 ~21:41 and possibly ~22:47). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 KiB