Skip to content

Collapse Dockerfile to 2 stages with Python 3.13-alpine#436

Merged
nitrobass24 merged 1 commit into
developfrom
chore/dockerfile-python313-alpine
May 1, 2026
Merged

Collapse Dockerfile to 2 stages with Python 3.13-alpine#436
nitrobass24 merged 1 commit into
developfrom
chore/dockerfile-python313-alpine

Conversation

@nitrobass24
Copy link
Copy Markdown
Owner

Summary

  • Merge python-deps and runtime stages into a single python:3.13-alpine stage (3 stages → 2)
  • Eliminates redundant alpine:3.21 base and COPY --from=python-deps /usr/local/ /usr/local/ step
  • Upgrade Python 3.12 → 3.13 (active bugfix support)
  • Remove 6 dead stdlib cleanup entries for modules removed from CPython (distutils, lib2to3, audioop, ossaudiodev, nis, _crypt)
  • Replace pip uninstall -y pip setuptools with direct rm -rf (more reliable)
  • Update CI python-version from "3.12" to "3.13" across python-lint, python-typecheck, and python-test jobs

Test plan

  • CI passes — all jobs (lint, typecheck, unit tests, Docker build + E2E)
  • make build builds successfully
  • make run — container serves on port 8800
  • make size — image size same or smaller

🤖 Generated with Claude Code

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>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@nitrobass24 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 47 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8175f16f-b6c4-4d92-a56e-78d320630b03

📥 Commits

Reviewing files that changed from the base of the PR and between 1007581 and c0e4332.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • src/docker/build/docker-image/Dockerfile
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/dockerfile-python313-alpine

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.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 25 minutes and 47 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@nitrobass24 nitrobass24 merged commit 51ede44 into develop May 1, 2026
17 checks passed
@nitrobass24 nitrobass24 deleted the chore/dockerfile-python313-alpine branch May 1, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant