fix(docker): install curl for healthcheck - #7
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideInstalls curl in the Python 3.12 slim Docker image specifically to support container health checks, while keeping the image relatively small by using --no-install-recommends and cleaning up apt caches. Sequence diagram for container healthcheck using curlsequenceDiagram
actor Orchestrator
participant Container
participant curlProcess
participant AppProcess
Orchestrator->>Container: Trigger Docker healthcheck
Container->>curlProcess: Run curl http://localhost/health
curlProcess->>AppProcess: HTTP GET /health
AppProcess-->>curlProcess: 200 OK
curlProcess-->>Container: Exit code 0
Container-->>Orchestrator: Healthcheck success
Orchestrator->>Container: Subsequent healthchecks on schedule
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ 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. ✨ 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. Comment |
There was a problem hiding this comment.
Pull request overview
Adds curl to the container image so runtime health checks can execute curl inside the container (e.g., for /health probing), aligning the image contents with operational/deploy workflow expectations.
Changes:
- Install
curlin the Docker image viaapt-getand remove apt list metadata afterward.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| FROM python:3.12-slim | ||
|
|
||
| # Install curl for healthchecks (10MB) and clean up apt cache. | ||
| RUN apt-get update && apt-get install -y --no-install-recommends curl \ |
| @@ -1,5 +1,9 @@ | |||
| FROM python:3.12-slim | |||
|
|
|||
| # Install curl for healthchecks (10MB) and clean up apt cache. | |||
Summary by Sourcery
Build: