Collapse Dockerfile to 2 stages with Python 3.13-alpine#436
Conversation
Merge the python-deps and runtime stages into a single python:3.13-alpine stage, eliminating the separate alpine:3.21 base and the COPY --from=python-deps step. - Upgrade Python 3.12 → 3.13 - Remove 6 dead stdlib cleanup entries (distutils, lib2to3, audioop, ossaudiodev, nis, _crypt — all removed from CPython) - Replace pip self-uninstall with direct rm -rf of pip/setuptools - Update CI python-version from 3.12 to 3.13 across all jobs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 25 minutes and 47 seconds.Comment |
Summary
python:3.13-alpinestage (3 stages → 2)alpine:3.21base andCOPY --from=python-deps /usr/local/ /usr/local/steppip uninstall -y pip setuptoolswith directrm -rf(more reliable)python-versionfrom"3.12"to"3.13"across python-lint, python-typecheck, and python-test jobsTest plan
make buildbuilds successfullymake run— container serves on port 8800make size— image size same or smaller🤖 Generated with Claude Code